How to prepare rainclowd plots with mean, SE and SD values?

Viewed 35

I have this code in R. Could you tell me how to modify this code to see mean, SE and SD values?

Thanks!

mydata %>% ggplot(aes(x=odl,y=n_os, fill = odl)) +
  geom_flat_violin(position = position_nudge(x = .15, y = 0),width = 1, adjust =1, alpha = 0.9) +
  geom_point(position = position_jitter(width = .05), size = 1.5) +
  geom_boxplot(aes(x = odl, y = n_os, fill = odl),outlier.shape = NA, alpha = .9, width = .1, colour = "black")+
  labs(x = 'Distance', y = 'Mean number of species') + theme_ggdist() + theme(legend.position="none") + theme(axis.line.x = element_line(colour = 'black', size=0.5, linetype='solid'), axis.line.y = element_line(colour = 'black', size=0.5, linetype='solid')) + theme(text = element_text(size = 16)) + theme(axis.text = element_text(size = 16))
0 Answers
Related