Skip to contents

Returns a list containing plot style configuration and export configuration. The function supports retrieving a single plot style or all available styles.

Usage

get_all_config(
  plot_style = "default",
  config = NULL,
  export_config = NULL,
  printing = FALSE
)

Arguments

plot_style

Character. The plot style to retrieve: "comparison", "detail", "stack", or "all". Default is "all", which returns configurations for all styles.

config

List. Optional custom style configuration to override defaults.

export_config

List. Optional custom export configuration to override defaults.

printing

Logical. If TRUE, prints a formatted code snippet that can be copied and pasted to recreate the configuration. Default is FALSE.

Value

A list with two components:

  • plot_style_config: Plot style configuration(s). If plot_style="all", contains a nested list with configurations for all styles.

  • export_config: Export configuration as a data frame.

Author

Pattawee Puangchit

Examples

# Get all plot configurations with default settings
all_configs <- get_all_config()

# Get only comparison plot configuration
comp_config <- get_all_config("default")