Load the `airquality’ dataset form the datasets package in R

Load the `airquality’ dataset form the datasets package in R

12
library(datasets)
data(airquality)
I am interested in examining how the relationship between ozone and wind speed varies across each month. What would be the appropriate code to visualize that using ggplot2?

  • 1
    qplot(Wind, Ozone, data = airquality, facets = . ~ factor(Month))
  • 1
    qplot(Wind, Ozone, data = airquality)
  • 12
    airquality = transform(airquality, Month = factor(Month))
    qplot(Wind, Ozone, data = airquality, facets = . ~ Month)
  • 1
    qplot(Wind, Ozone, data = airquality, geom = “smooth”)

Get All Week Quiz Answer:

Exploratory Data Analysis Coursera Quiz Answer

Similar Posts