grouped_ggpiestats | R Documentation |
Helper function for ggstatsplot::ggpiestats
to apply this
function across multiple levels of a given factor and combining the
resulting plots using ggstatsplot::combine_plots
.
grouped_ggpiestats(
data,
...,
grouping.var,
plotgrid.args = list(),
annotation.args = list()
)
data |
A data frame (or a tibble) from which variables specified are to
be taken. Other data types (e.g., matrix,table, array, etc.) will not
be accepted. Additionally, grouped data frames from |
... |
Arguments passed on to
|
grouping.var |
A single grouping variable. |
plotgrid.args |
A |
annotation.args |
A |
For details, see: https://indrajeetpatil.github.io/ggstatsplot/articles/web_only/ggpiestats.html
ggbarstats
, ggpiestats
,
grouped_ggbarstats
set.seed(123)
# grouped one-sample proportion test
grouped_ggpiestats(mtcars, x = cyl, grouping.var = am)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.