ggassoc_boxplot: Boxplots with violins

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/ggassoc_boxplot.R

Description

Displays of boxplot and combines it with a violin plot, using ggplot2.

Usage

1
2
ggassoc_boxplot(data, mapping, axes.labs=TRUE, ticks.labs=TRUE,
text.size=3, box=TRUE, notch=FALSE, violin=TRUE)

Arguments

data

dataset to use for plot

mapping

aesthetic being used. It must specify x and y.

axes.labs

Whether to display the labels of the axes, i.e. the names of x and y. Default is TRUE.

ticks.labs

Whether to display the labels of the categories of x and y. Default is TRUE.

text.size

Size of the association measure. If NULL, the text is not added to the plot.

box

Whether to draw boxplots. Default is TRUE.

notch

If FALSE (default) make a standard box plot. If TRUE, make a notched box plot. Notches are used to compare groups; if the notches of two boxes do not overlap, this suggests that the medians are significantly different.

violin

Whether to draw a violin plot. Default is TRUE.

Details

Eta-squared measure of global association between x and y is displayed in upper-left corner of the plot.

This function can be used as a high-level plot with ggduo and ggpairs functions of the GGally package.

Value

a ggplot object

Author(s)

Nicolas Robette

See Also

assoc.catcont, condesc, assoc.yx, darma, ggpairs

Examples

1
2
data(decathlon, package="FactoMineR")
ggassoc_boxplot(decathlon, mapping = ggplot2::aes(x = Javeline, y = Competition))

GDAtools documentation built on May 31, 2021, 5:08 p.m.