bio-data-visualization-ggplot2-fundamentals
Installation
SKILL.md
ggplot2 Fundamentals
Basic Structure
library(ggplot2)
# Grammar of graphics: data + aesthetics + geometry
ggplot(data, aes(x = var1, y = var2)) +
geom_point()
Common Geoms
# Scatter plot
ggplot(df, aes(x, y)) + geom_point()