Perform the following steps:
- We begin exploring by visualizing the data with a boxplot:
> boxplot(mtcars$mpg~factor(mtcars$gear),xlab='gear',ylab='mpg')
- To visualize how gear and mpg is related, a dot plot is created using the following steps:
> library(ggplot2) > ggplot(mtcars,aes(mtcars$mpg,mtcars$gear, color =mtcars$gear))+geom_point()
- Next, we conduct a one-way ANOVA to examine whether the mean of mpg changes with different numbers of ...