# NOT RUN {
library(ggplot2)
# simple function call with the defaults
ggstatsplot::ggpiestats(
data = datasets::iris,
main = Species
)
# more detailed function call
ggstatsplot::ggpiestats(
data = datasets::mtcars,
main = am,
condition = cyl,
factor.levels = c("zero", "one"),
stat.title = "interaction",
title = "Dataset: mtcars",
caption = "This is a demo",
legend.title = "transmission",
facet.wrap.name = "No. of cylinders",
facet.proptest = TRUE
)
# }
Run the code above in your browser using DataLab