grouped_ggdotplotstats | R Documentation |
Helper function for ggstatsplot::ggdotplotstats
to apply this function
across multiple levels of a given factor and combining the resulting plots
using ggstatsplot::combine_plots
.
grouped_ggdotplotstats( data, ..., grouping.var, output = "plot", 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. |
output |
Character that describes what is to be returned: can be
|
plotgrid.args |
A |
annotation.args |
A |
For details, see: https://indrajeetpatil.github.io/ggstatsplot/articles/web_only/ggdotplotstats.html
grouped_gghistostats
, ggdotplotstats
,
gghistostats
# for reproducibility set.seed(123) library(ggstatsplot) library(dplyr, warn.conflicts = FALSE) # removing factor level with very few no. of observations df <- filter(ggplot2::mpg, cyl %in% c("4", "6", "8")) # plot grouped_ggdotplotstats( data = df, x = cty, y = manufacturer, grouping.var = cyl, test.value = 15.5 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.