Description Usage Arguments Details See Also Examples
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
.
1 2 3 4 5 6 7 8 9 10 |
data |
A dataframe (or a tibble) from which variables specified are to be taken. Other data types (e.g., matrix,table, array, etc.) will not be accepted. |
x |
A numeric variable from the dataframe |
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 |
output |
Character that describes what is to be returned: can be
|
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
1 2 3 4 5 6 7 8 9 10 11 12 13 | # for reproducibility
set.seed(123)
library(ggstatsplot)
# 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.