diff --git a/Tridimensional barplots in R/README.md b/Tridimensional barplots in R/README.md index 45b27a21527ef145c2e072e2ef41fc80e07aef36..501bc5506a1e8a23cec64704b8c4bdcdb2d10491 100644 --- a/Tridimensional barplots in R/README.md +++ b/Tridimensional barplots in R/README.md @@ -82,3 +82,11 @@ ggsave("mybarplot.pdf", width=8, height=5, units="cm") The result will need further adjustments, in Inkscape, for example for the final figure:  + +UPDATE (sept 2023) - a more pleasant distribution of points could be obtained using the "beeswarm" plots, in which the dots are distributed depending on their density. One need just to replace the `geom_point(... position_jitterdodge)` with something similar to this: +```R +geom_quasirandom(data=melted, aes(x=vector, y=value, color=factor(strain)), + dodge.width = 0.8, + shape=21, fill="white")+ +``` +`ggbeeswarm` can be installed from CRAN (https://github.com/eclarke/ggbeeswarm) \ No newline at end of file