ggboxplot: Nice default options for (grid of) boxplots

Description Usage Arguments Value Examples

Description

Nice default options for (grid of) boxplots

Usage

1
ggboxplot(plot_data, opts = list())

Arguments

plot_data

[data.frame] A data.frame with data to create the boxplot. The variables for x, y, colors / fill types, and faceting must be provided by opts, see merge_boxplot_opts().

opts

[list] A partially specified list used to customize the appareance in ggplot theme(). Options that are already specified will not be changed, those that are not will be filled in with defaults.

Value

p [ggplot] A ggplot geom_boxplot() with nice defaults

Examples

1
2
3
4
5
6
7
8
9
# create an example data set
X <- data.frame(
 "x" = sample(c("A", "B", "C"), 1000, replace = TRUE),
 "y" = rnorm(1000),
 "fill" = sample(c("alpha", "beta"), 1000, replace = TRUE)
)

ggboxplot(X)
ggboxplot(X, list(col = "fill", fill = "fill"))

krisrs1128/ggscaffold documentation built on May 20, 2019, 1:26 p.m.