grouped_gghistostats | R Documentation |
Helper function for ggstatsplot::gghistostats
to apply this function
across multiple levels of a given factor and combining the resulting plots
using ggstatsplot::combine_plots
.
grouped_gghistostats(
data,
x,
grouping.var,
binwidth = NULL,
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 |
x |
A numeric variable from the data frame |
grouping.var |
A single grouping variable. |
binwidth |
The width of the histogram bins. Can be specified as a
numeric value, or a function that calculates width from |
plotgrid.args |
A |
annotation.args |
A |
... |
Arguments passed on to
|
For details, see: https://indrajeetpatil.github.io/ggstatsplot/articles/web_only/gghistostats.html
gghistostats
, ggdotplotstats
,
grouped_ggdotplotstats
# for reproducibility
set.seed(123)
# plot
grouped_gghistostats(
data = iris,
x = Sepal.Length,
test.value = 5,
grouping.var = Species,
plotgrid.args = list(nrow = 1),
annotation.args = list(tag_levels = "i")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.