plot_fun is a function that uses parameters to plot a plot.
Usage
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")
Arguments
a
A (natural) number.
Default: a = NA.
b
A Boolean value.
Default: b = TRUE.
c
A Boolean value.
Default: c = TRUE.
d
A (decimal) number.
Default: d = 1.0.
e
A Boolean value.
Default: e = FALSE.
f
A Boolean value.
Default: f = FALSE.
g
A Boolean value.
Default: g = FALSE.
c1
A color palette (e.g., as a vector).
Default: c1 = c(rev(pal_seeblau), "white", pal_grau, "black", Bordeaux).
Note: Using colors of the unikn package by default.
c2
A color (e.g., as a character).
Default: c2 = "black".
Details
plot_fun is deliberately kept cryptic and obscure to illustrate
how function parameters can be explored (and why transparent variable
names are essential for understanding and using a function).