set_style.RdCreates a style list for eda graphing functions
set_style(
style = NULL,
title = NULL,
xlabel = NULL,
ylabel = NULL,
xlims = NULL,
ylims = NULL,
colors = NULL,
labels = NULL,
shapes = NULL,
legend = NULL,
shape_legend = NULL,
color_order = NULL,
shape_order = NULL,
linetype_order = NULL,
legend.position = NULL,
legend.title.position = NULL,
legend.title.hjust = NULL,
logx = NULL,
logy = NULL,
fill_alpha = NULL,
fill_legend = NULL,
fill_order = NULL,
caption_hjust = NULL,
legend_nrow = NULL
)An optional named list of style arguments to update
A string for a plot title
A string for x-axis label
A string for y-axis label
A tuple of numbers specifying limits for x-axis
A tuple of numbers specifying limits for y-axis
A named character vector for setting colors
A named character vector for setting legend labels
A named character vector for setting geom_point shapes
A string for setting color legend title
A string for setting shape legend title
A numeric for setting color legend order
A numeric for setting shape legend order
A numeric for setting linetype legend order
A string for legend position
A string for legend title position ("top", "left", "bottom", "right")
A string or numeric for legend title horizontal justification ("left"/0, "center"/0.5, "right"/1)
A boolean for setting x-axis to log scale
A boolean for setting y-axis to log scale
A numeric for controlling alpha of fill colors
A string to replace fill legend title
A numeric for setting fill legend order
A string or numeric for caption horizontal justification ("left"/0, "center"/0.5, "right"/1)
A numeric for number of rows in legend
a named list for using with style_plot
data_proc <- cqtkit_data_verapamil |> preprocess()
style = set_style(
colors = c(
"0 mg Placebo" = "grey"
),
labels = c(
"Reference -10" = NA,
"Reference 10" = "+/- 10 ms dQTcF",
"0 mg Placebo" = "Placebo",
"120 mg Verapamil" = "Verapamil"
),
legend = "Treatment"
)
style
#> $title
#> NULL
#>
#> $xlabel
#> NULL
#>
#> $ylabel
#> NULL
#>
#> $xlims
#> NULL
#>
#> $ylims
#> NULL
#>
#> $colors
#> 0 mg Placebo
#> "grey"
#>
#> $labels
#> Reference -10 Reference 10 0 mg Placebo 120 mg Verapamil
#> NA "+/- 10 ms dQTcF" "Placebo" "Verapamil"
#>
#> $shapes
#> NULL
#>
#> $legend
#> [1] "Treatment"
#>
#> $shape_legend
#> NULL
#>
#> $color_order
#> NULL
#>
#> $shape_order
#> NULL
#>
#> $linetype_order
#> NULL
#>
#> $legend.position
#> NULL
#>
#> $legend.title.position
#> [1] "top"
#>
#> $legend.title.hjust
#> NULL
#>
#> $logx
#> NULL
#>
#> $logy
#> NULL
#>
#> $fill_alpha
#> NULL
#>
#> $fill_legend
#> NULL
#>
#> $fill_order
#> NULL
#>
#> $caption_hjust
#> NULL
#>
#> $legend_nrow
#> NULL
#>