Set visualization options for the current session. Only provided arguments are changed; others remain unchanged.
Arguments
- theme
[character, optional] Color theme. Use
viz_themes()to see available themes.- export_graphics
[logical, optional] If TRUE, export plots to files.
- export_path
[character, optional] Directory path for exported plots.
- graph_scale
[numeric, optional] Scaling factor for exported graphics. Values > 1 increase resolution.
Examples
if (FALSE) { # \dontrun{
# Change theme
viz_set(theme = "purple")
# Enable export with custom path
viz_set(export_graphics = TRUE, export_path = "./output/plots")
# Save and restore settings
prev <- viz_set(theme = "red")
# ... do work ...
do.call(viz_set, prev)
} # }