Duke Rhodes Information Initiative at Duke

We can look at relationships between variables graphically. We will use ggplot2 for this. The ggplot command creates plots using layers. First, within ggplot(), we specify the data set and within aes() we specify the x and y variables (aes refers to “aesthetics”). Then we … ................
................