Today:
- Scatterplot AKA bivariate plot
- Line-graph
- Boxplot
- Barplot AKA Barchart AKA bargraph
- Histogram
Mon Sep 26, 2016
Today:
Let's re-run our example from last time:
# Load packages
library(dplyr)
library(ggplot2)
# Create data frame
simple_ex <-
data_frame(
A = c(1, 2, 3, 4),
B = c(1, 2, 3, 4),
C = c(3, 2, 1, 2),
D = c("a", "a", "b", "b")
)
simple_ex
A statistical graphic is a mapping of data variables to aes()thetic attributes of geom_etric objects.
geom_point()alpha to control transparencygeom_jitter(): a kind of geom_point() where we add a little jitter (i.e. random noise) to the points to break log-jams