Skip to contents

Constructor and factory for plot_doseprop plot aesthetics. Call with no arguments to view defaults. Pass element overrides to customize.

Usage

plot_doseprop_theme(obs_point = NULL, linear = NULL, obs = NULL)

Arguments

obs_point

Observed data point aesthetics. See pmx_point().

linear

Linear regression line + SE ribbon aesthetics. See pmx_trend().

obs

Shortcut: apply shared aesthetics to obs_point. See pmx_style().

Value

A named list of theme elements

Examples

plot_doseprop_theme()
#> <plot_doseprop_theme>
#>   obs_point <pmx_point>: shape = 1, size = 2, alpha = 0.7
#>   linear    <pmx_trend>: linewidth = 1, linetype = 1, color = black, se_color = lightgrey, se_alpha = 0.4
plot_doseprop_theme(linear = pmx_trend(color = "red"))
#> <plot_doseprop_theme>
#>   obs_point <pmx_point>: shape = 1, size = 2, alpha = 0.7
#>   linear    <pmx_trend>: linewidth = 1, linetype = 1, color = red, se_color = lightgrey, se_alpha = 0.4
plot_doseprop_theme(obs = pmx_style(alpha = 0.3))
#> <plot_doseprop_theme>
#>   obs_point <pmx_point>: shape = 1, size = 2, alpha = 0.3
#>   linear    <pmx_trend>: linewidth = 1, linetype = 1, color = black, se_color = lightgrey, se_alpha = 0.4