The raincloud layout display jittered dots as well as a "cloud" (half of a violin) above them. See @allen2019. The functions has these parameters:
a data.frame with columns "center", "lowerwidth" and "upperwidth" for each level of the factors;
a string with the name of the column where the factor going on the horizontal axis is given;
a string with the name of the column for which the data will be grouped on the plot;
a string with up to two additional factors to make the rows and columns panels, in the form "fact1 ~ fact2";
always contains "DV" for each participants and each level of the factors
(optional) list of graphic directives that are sent to the geom_violin layer; this modified geom_violin has additional options "direction" and "push".
(optional) list of graphic directives that are sent to the geom_jitter layer
(optional) list of graphic directives that are sent to the geom_point layer
(optional) list of graphic directives that are sent to the geom_superberrorbar layer
(optional) list of graphic directives that are sent to the facet_grid layer
(optional) Boolean to indicate if the factor on the horizontal should continuous or discrete (default is discrete)
a ggplot object
There are no references for Rd macro \insertAllCites
on this help page.
# This will make a plot with raincloud; they are better seen rotated: +coord_flip()
superb(
len ~ dose + supp,
ToothGrowth,
plotStyle="raincloud"
)
# if you extract the data with superbData, you can
# run this layout directly
#processedData <- superb(ToothGrowth,
# len ~ dose + supp,
# showPlot = FALSE
#)
#
#superbPlot.raincloud(processedData$summaryStatistic,
# "dose",
# "supp",
# ".~.",
# processedData$rawData)