acl_theme()
View source ↗On this page
Read the global settings that every ALSCL plot inherits, or one of them.
Usage
acl_theme(what = NULL)
Arguments
| Argument | Default | Description |
|---|---|---|
what | NULL | Character or NULL. NULL returns all global theme settings; the name of one setting, such as "titles", "font_family" or "compare_colors", returns that setting. Letter case does not matter. |
Value
The complete list of settings when what = NULL, or the requested setting otherwise.
Details
Arguments given in a plot call override the inherited settings. Use acl_theme_set() to change the settings and acl_theme_reset() to restore the package defaults. acl_theme("style") gives the active style; theme_acl() and acl_palette() give your own ggplots the look and colors of the package plots. The example figure draws plot_SSB() under each palette after stock_color = NULL, because a palette leaves the four quantity colors unchanged.
Examples
Run the setup before the example. Fitting examples require an R-compatible C++ toolchain; simulation and export examples may write files.
Example setup
library(ALSCL)
# Use objects defined above
acl_theme()
acl_theme("line_color")

for (p in c("default", "npg", "aaas", "nejm", "lancet", "jama")) { acl_theme_set(palette = p, stock_color = NULL); print(plot_SSB(b, se = TRUE)) }