| viz_set | R Documentation |
Set visualization options for the current session. Only provided arguments are changed; others remain unchanged.
viz_set(
theme = NULL,
export_graphics = NULL,
export_path = NULL,
graph_scale = NULL
)
theme |
[character, optional] Color theme. Use |
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. |
Previous settings (invisibly), enabling easy restoration.
## Not run:
# 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.