plot_fun

0th

Percentile

A function to plot some plot.

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).

See Also

plot_fn for a related function; pal_ds4psy for color palette.

Other plot functions: plot_fn, plot_n, plot_tiles, theme_ds4psy

Aliases
  • plot_fun
Examples
# NOT RUN {
# 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"))

# }
Documentation reproduced from package ds4psy, version 0.1.0, License: CC BY-SA 4.0

Community examples

Looks like there are no examples yet.