Question #1: What is the most popular fuel type in mpg
data set?
ggplot(mpg) +
geom_bar(aes(x = fl, color = fl, fill = fl))

Answer: According to the figure, r(regular petrol)
is the most popular type of fuel
Regarding the fuel type variable, the value “d” represents diesel,
“p” represents
Question #2: Regarding the fuel type variable, the value “d”
represents diesel, “p” represents premium (petrol) and “r” represents
regular (petrol). Do you think there is an effect of fuel type on how
many miles a vehicle can run on average per gallon of fuel?
ggplot(data = mpg) +
geom_boxplot(mapping = aes(x= fl, y= hwy))

ggplot(data = mpg) +
geom_boxplot(mapping = aes(x= fl, y= cty))
