Skip to contents

Constructor and factory for plot_dvtime plot aesthetics. Call with no arguments to view defaults. Pass element overrides to customize. Use role-level shortcuts obs and cent with pmx_style() to set shared aesthetics (e.g., color, alpha) for both point and line elements at once.

Usage

plot_dvtime_theme(
  obs_point = NULL,
  obs_line = NULL,
  cent_point = NULL,
  cent_line = NULL,
  cent_errorbar = NULL,
  ref_line = NULL,
  loq_line = NULL,
  obs = NULL,
  cent = NULL
)

Arguments

obs_point

Observed data point aesthetics. See pmx_point().

obs_line

Observed data line aesthetics (spaghetti). See pmx_line().

cent_point

Central tendency point aesthetics. See pmx_point().

cent_line

Central tendency line aesthetics. See pmx_line().

cent_errorbar

Central tendency error bar aesthetics. See pmx_errorbar().

ref_line

Reference line aesthetics (e.g., change-from-baseline). See pmx_line().

loq_line

LOQ reference line aesthetics. See pmx_line().

obs

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

cent

Shortcut: apply shared aesthetics to both cent_point and cent_line. See pmx_style().

Value

A named list of theme elements

See also

Other exploratory analysis: plot_dvconc(), plot_dvconc_theme(), plot_dvtime()

Examples

plot_dvtime_theme()
#> <plot_dvtime_theme>
#>   obs_point     <pmx_point>: shape = 1, size = 0.75, alpha = 0.5
#>   obs_line      <pmx_line>: linewidth = 0.5, linetype = 1, alpha = 0.5
#>   cent_point    <pmx_point>: shape = 16, size = 1.25, alpha = 0
#>   cent_line     <pmx_line>: linewidth = 0.75, linetype = 1, alpha = 1
#>   cent_errorbar <pmx_errorbar>: linewidth = 0.75, linetype = 1, alpha = 1, width = NULL
#>   ref_line      <pmx_line>: linewidth = 0.5, linetype = 2, alpha = 1
#>   loq_line      <pmx_line>: linewidth = 0.5, linetype = 2, alpha = 1
plot_dvtime_theme(obs_point = pmx_point(size = 2), ref_line = pmx_line(linetype = 3))
#> <plot_dvtime_theme>
#>   obs_point     <pmx_point>: shape = 1, size = 2, alpha = 0.5
#>   obs_line      <pmx_line>: linewidth = 0.5, linetype = 1, alpha = 0.5
#>   cent_point    <pmx_point>: shape = 16, size = 1.25, alpha = 0
#>   cent_line     <pmx_line>: linewidth = 0.75, linetype = 1, alpha = 1
#>   cent_errorbar <pmx_errorbar>: linewidth = 0.75, linetype = 1, alpha = 1, width = NULL
#>   ref_line      <pmx_line>: linewidth = 0.5, linetype = 3, alpha = 1
#>   loq_line      <pmx_line>: linewidth = 0.5, linetype = 2, alpha = 1
plot_dvtime_theme(obs = pmx_style(alpha = 0.3))
#> <plot_dvtime_theme>
#>   obs_point     <pmx_point>: shape = 1, size = 0.75, alpha = 0.3
#>   obs_line      <pmx_line>: linewidth = 0.5, linetype = 1, alpha = 0.3
#>   cent_point    <pmx_point>: shape = 16, size = 1.25, alpha = 0
#>   cent_line     <pmx_line>: linewidth = 0.75, linetype = 1, alpha = 1
#>   cent_errorbar <pmx_errorbar>: linewidth = 0.75, linetype = 1, alpha = 1, width = NULL
#>   ref_line      <pmx_line>: linewidth = 0.5, linetype = 2, alpha = 1
#>   loq_line      <pmx_line>: linewidth = 0.5, linetype = 2, alpha = 1