Ggplot -Cheatsheet PDF

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 PDF
Total Downloads 108
Total Views 144

Summary

Cheatsheet...


Description

Data Visualization with ggplot2 : : CHEAT SHEET Basics

Geoms

ggplot2is based on thegrammar of graphics, the idea that you can build every graph from the same components: adataset, acoordinate system, andgeoms—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...


Similar Free PDFs