Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


tame (version 0.2.0)

construct_color_scales: Construct color scales for summary plot

Description

The construct_color_scales() function constructs the color scales for the summary plot.

Usage

construct_color_scales(
  plot_data,
  comedication_count_colors = NULL,
  medication_frequency_colors = NULL,
  timing_atc_group_colors = NULL
)

Value

A list with the color scales:

  • comedication_count_colors a character vector with the colors for the comedication count.

  • medication_frequency_colors a character vector with the colors for the medication frequency.

  • medication_frequency_linetype a numeric vector with the linetypes for the medication frequency.

  • timing_atc_group_colors a character vector with the colors for the ATC groups.

Arguments

plot_data

A data frame with the plot data.

comedication_count_colors

A character vector with the colors for the comedication count.

medication_frequency_colors

A character vector with the colors for the medication frequency.

timing_atc_group_colors

A character vector with the colors for the ATC groups.