Skip to content
Snippets Groups Projects
Commit 3a8b6620 authored by Cosmin  SAVEANU's avatar Cosmin SAVEANU
Browse files

added beeswarmplot option

parent 6f92ac93
No related branches found
No related tags found
No related merge requests found
......@@ -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:
![Obtained plot](<./savedplot.png> "Obtained plot")
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment