Great resource, thank you. Just working through the MATLAB tutorial raincloudplotstutorial.mlx. The first section that generates codedir, figdir, and datadir has a couple of bugs - it uses double quotes instead of single quotes around the directory names, and a '+' in the square brackets which should be dropped. Cheers, Alex
This is fantastic - thanks for writing it! One idea for simplifying the ggplot2 code: instead of dealing with two different data frames (one summary, one containing the raw data), you could use stat_summary() to create the summary for you. For instance, plot 7 could be generated with:
ggplot(simdat, aes(x=group, y=score, fill = group, colour = group)) +
geom_flat_violin(position = position_nudge(x = .25, y = 0), adjust =2) +
geom_point(position = position_jitter(width = .15), size = .25) +
stat_summary(geom="errorbar", fun.data="mean_cl_boot", position = position_nudge(.25), colour = "BLACK", size = 0.8, width = .1) +
stat_summary(geom="point", fun.data="mean_cl_boot", position = position_nudge(.25), colour = "BLACK") +
ylab('Score') + xlab('Group') + coord_flip() + theme_cowplot() + guides(fill = FALSE, colour = FALSE) +
scale_colour_brewer(palette = "Dark2") +
scale_fill_brewer(palette = "Dark2") +
ggtitle("Figure 7: Raincloud Plot with Mean ± 95% CI")
Great job! I really like the raincloud plot. Perhaps it's easier for users to make raincloud plot if you can convert the R code for making geomflatviolin into an R package, like "raincloud". Otherwise, users have to make a copy of Rrainclouds.R whenever we want to make a new plot in another computer. In addition, is it possible to make raincloud plot as a new type of plot in ggplot2, such as geomraincloud?
You can also choose to receive updates via daily or weekly email digests. If you are following multiple preprints then we will send you no more than one email per day or week based on your preferences.
Note: You are now also subscribed to the subject areas of this preprint and will receive updates in the daily or weekly email digests if turned on. You can add specific subject areas through your profile settings.
Usage since published - updated daily