construct_color_scales: Construct color scales for summary plot

View source: R/plot-utils.R

construct_color_scalesR 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.


tame documentation built on April 12, 2025, 1:40 a.m.