Closed priyankagagneja closed 3 years ago
The mpg data set comes with ggplot2.
ok gotcha, looks like the code needs the call to ggplot2 then(library(ggplot1
)). either one works fine.
The code should work as-is. Tidyverse loads ggplot2, which contains the mpg dataset.
mpg dataset does not exist. You probably intended to do data("mtcars"). Similarly down below in the ui & server section.