plot_fun | R Documentation |
plot_fun
is a function that provides options for plotting a plot.
plot_fun(
a = NA,
b = TRUE,
c = TRUE,
d = 1,
e = FALSE,
f = FALSE,
g = FALSE,
c1 = c(rev(pal_seeblau), "white", pal_grau, "black", Bordeaux),
c2 = "black"
)
a |
Numeric (integer > 0).
Default: |
b |
Boolean.
Default: |
c |
Boolean.
Default: |
d |
Numeric (double).
Default: |
e |
Boolean.
Default: |
f |
Boolean.
Default: |
g |
Boolean.
Default: |
c1 |
A color palette (as a vector).
Default: |
c2 |
A color (e.g., color name, as character).
Default: |
plot_fun
is deliberately kept cryptic and obscure to illustrate
how function parameters can be explored.
plot_fun
also shows that brevity in argument names should not
come at the expense of clarity. In fact, transparent argument names
are absolutely essential for understanding and using a function.
plot_fun
currently requires pal_seeblau
, pal_grau
, and
Bordeaux
(from the unikn package) for its default colors.
plot_fn
for a related function;
pal_ds4psy
for color palette.
Other plot functions:
plot_charmap()
,
plot_chars()
,
plot_fn()
,
plot_n()
,
plot_text()
,
plot_tiles()
,
theme_clean()
,
theme_ds4psy()
,
theme_empty()
# Basics:
plot_fun()
# Exploring options:
plot_fun(a = 3, b = FALSE, e = TRUE)
plot_fun(a = 4, f = TRUE, g = TRUE, c1 = c("steelblue", "white", "firebrick"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.