Title | Ggplot -Cheatsheet |
---|---|
Author | Louis Bauer |
Course | Data analysis and visualization in R |
Institution | Technische Universität München |
Pages | 2 |
File Size | 180.2 KB |
File Type | |
Total Downloads | 108 |
Total Views | 144 |
Cheatsheet...
Data Visualization with ggplot2 : : CHEAT SHEET Basics
Geoms
ggplot2is based on thegrammar of graphics, the idea that you can build every graph from the same components: adataset, acoordinate system, andgeoms—visual marks that represent data points. F M A
+ data
geom
x=F·y=A
plot
F M A
data
geom
x=F·y=A color = F size = A
= coordinate system
a + geom_blank()! (Useful for expanding limits)
a + geom_path(lineend="butt", linejoin="round", linemitre=1)! x, y, alpha, color, group, linetype, size
To display values, map variables in the data to visual properties of the geom (aesthetics) like size, color, and x and y locations.
+
GRAPHICAL PRIMITIVES a...