Learn R Programming

GTAPViz (version 1.1.3)

get_all_config: Print Plot and Export Configuration Snippets

Description

Retrieve full configuration code as a list for applying in the plot styling and export settings.

Usage

get_all_config(
  plot_style = "default",
  plot_config = TRUE,
  export_config = TRUE
)

Value

A named list containing the current default values for all GTAPViz configuration options, including plot styles, table formats, and export parameters.

Arguments

plot_style

Character. Plot style to use (currently only `"default"` is supported).

plot_config

Logical. If `TRUE`, prints the plot style configuration.

export_config

Logical. If `TRUE`, prints the export configuration.

Author

Pattawee Puangchit

Details

Onece printing into the console, users can simply copy and paste the entire list of configurations, rename it (if needed), and use it in your plot functions directly.

Examples

Run this code
# Input Path:
input_path <- system.file("extdata/in", package = "GTAPViz")
sl4.plot.data <- readRDS(file.path(input_path, "sl4.plot.data.rds"))

# Retrive configurations
get_all_config()

Run the code above in your browser using DataLab