Talk given at the Symposium on Data Science and Statistics in Bellevue, Washington, May 29 - June 1, 2019, organized by the American Statistical Association and Interface Foundation of North America.
1 of 42
More Related Content
ggplot2: An Extensible Platform for Publication-quality Graphics
33. patchwork: A grammar of plot composition
p1 <- ggplot(iris, aes(Sepal.Length, Sepal.Width)) +
geom_point()
p2 <- ggplot(iris, aes(Species, Sepal.Length)) +
geom_boxplot()
# add plots to place them side-by-side
p1 + p2
Thomas Lin
Pederson
35. patchwork: A grammar of plot composition
p1 <- ggplot(iris, aes(Sepal.Length, Sepal.Width)) +
geom_point()
p2 <- ggplot(iris, aes(Species, Sepal.Length)) +
geom_boxplot()
# divide plots to place them on top of each other
p1 / p2
Thomas Lin
Pederson