In R you can add the mean
to a boxplot like this:
set.seed(7)
values <- runif(100, 0, 1)
boxplot(values)
points(mean(values), col = 'red')
I would like to do the same in Julia with StatsPlots
. Here is the code:
using StatsPlots
boxplot(repeat(['A'],outer=100),randn(300))
Output:
I am not sure how to add a single point (mean) to the boxplot. Is there a similar function like points
? So I was wondering if anyone knows how to add the mean to a boxplot in Julia like above?