ggplot2

Scatter Plot

November 8, 2021
visualization
ggplot2

Overview # A scatter plot is a simple way to present at least two numerical types of data together. This sort of presentation is often useful to convey a sense of the relationship between two types of data. R # Let’s make a scatter plot in R with the ggplot2 package. We’ll also use tooling from tidyverse to manipulate the data. library(tidyverse) library(ggplot2) # a bit redundant, since this is included in tidyverse, but showing it explicitly here In this case, we’ll use the cars data set as an example. ...