Data Visualization - QM-Life-Sci/Resources GitHub Wiki
Books:
- Fundamentals of Data Visualization: https://clauswilke.com/dataviz/
- Data Visualization: A practical introduction: https://socviz.co/
ggplot
- ggplot2 documentation reference: http://docs.ggplot2.org/current/
- R Graphics Cookbook: http://www.cookbook-r.com/Graphs/
- Quick-R: http://www.statmethods.net/advgraphs/ggplot2.html
- Quick Introduction to ggplot: http://blog.echen.me/2012/01/17/quick-introduction-to-ggplot2/
- ggplot Cheatsheet: http://zevross.com/blog/2014/08/04/beautiful-plotting-in-r-a-ggplot2-cheatsheet-3/
- Tutorial http://www.ceb-institute.org/bbs/wp-content/uploads/2011/09/handout_ggplot2.pdf
- https://github.com/jennybc/ggplot2-tutorial
- https://speakerdeck.com/jennybc/ggplot2-tutorial
- http://inundata.org/2013/04/10/a-quick-introduction-to-ggplot2/
- Advanced: http://rpubs.com/hadley/97970
Publication Quality Plots
- patchwork package: https://patchwork.data-imaginist.com/
- ggpubr: http://www.sthda.com/english/articles/24-ggpubr-publication-ready-plots/
- sjPlot: https://strengejacke.github.io/sjPlot/
- Big List of ggplot Extensions: https://github.com/erikgahner/awesome-ggplot2
Figure Theme
fig_theme <- list(
theme(axis.text = element_text(size = 8),
strip.text.x = element_text(size = 8),
strip.text.y = element_text(size = 7),
legend.position = "bottom",
legend.text = element_text(size = 8),
legend.title = element_text(size = 8, face = "bold"),
axis.title = element_text(size = 8, face = "bold"),
plot.title = element_text(size = 9, face = "bold"),
legend.key.size = unit(0.70, 'lines')),
guides(colour = guide_legend(override.aes = list(alpha = 1, size = 2),
reverse = TRUE,
nrow = 6),
shape = guide_legend(override.aes = list(alpha = 1, size = 2)))
)
Palettes
- https://www.datanovia.com/en/blog/top-r-color-palettes-to-know-for-great-data-visualization/
- R Color Palette Summary: https://github.com/EmilHvitfeldt/r-color-palettes
- R Package that simplifies using different discrete and continuous palettes: https://github.com/EmilHvitfeldt/paletteer
- R Color Cheatsheet: https://www.nceas.ucsb.edu/sites/default/files/2020-04/colorPaletteCheatsheet.pdf