View source: R/geom_paired_raincloud.R
geom_paired_raincloud | R Documentation |
Taking from https://raw.githubusercontent.com/yjunechoe/geom_paired_raincloud/master/geom_paired_raincloud.R on 30-10-22 attribution to https://yjunechoe.github.io/
geom_paired_raincloud(
mapping = NULL,
data = NULL,
stat = "ydensity",
position = "dodge",
trim = TRUE,
scale = "area",
show.legend = NA,
inherit.aes = TRUE,
...
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this
layer, either as a |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
trim |
If |
scale |
if "area" (default), all violins have the same area (before trimming the tails). If "count", areas are scaled proportionally to the number of observations. If "width", all violins have the same maximum width. |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
... |
Other arguments passed on to |
Create a paired raincloud plot (useful for visualizing difference between experimental conditions tested on the same subjects or items).
Adopted from the geom_violinhalf() source code from the see package
https://github.com/easystats/see/blob/master/R/geom_violinhalf.R
library(ggplot2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.