# NOT RUN {
library(datasets)
library(ggplot2)
# most basic function call with the defaults
ggstatsplot::gghistostats(
data = ggplot2::diamonds,
x = carat)
# more detailed function call
ggstatsplot::gghistostats(
data = datasets::iris,
x = Sepal.Length,
type = "parametric",
test.value = 3,
centrality.para = "mean",
density.plot = TRUE,
binwidth.adjust = TRUE,
binwidth = 0.10
)
# }
Run the code above in your browser using DataLab