# Violin + Box plot for iris dataset
plot_numeric(
data = iris,
var = Sepal.Length,
by = Species,
geom_type = "violin_box",
box.width = 0.1,
color.violin = c("#377eb8", "#ff7f00", "#4daf4a"),
color.box = c("darkgreen", "#a65628", "#f781bf"),
box.color = "black",
color.jitter = "red",
position.p = c(1,9),
jitter.size = 2,
ptext.size = 4,
show.posthoc = TRUE
)
# Simple bar plot with error bars
plot_numeric(
data = iris,
var = Sepal.Length,
by = Species,
geom_type = "bar",
error = "se"
)
# Violin plot with jitter points
plot_numeric(
data = iris,
var = Sepal.Length,
by = Species,
geom_type = "violin_jitter"
)
Run the code above in your browser using DataLab