construct_color_scales {tame} | R Documentation |
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
)
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. |
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.
[Package tame version 0.2.0 Index]