For the following recipes, you will need the R statistical programming language installed on your computer (either the base R or RStudio, but the authors strongly recommend using the excellent and free RStudio) and the automobile fuel efficiency dataset. This quick recipe will help you ensure that you have everything that you will need to complete this analysis project.
You will need an internet connection to complete this recipe, and we assume that you have installed RStudio for your particular platform, based on the instructions in the previous chapter.
If you are using RStudio, the following three steps will get you ready to roll:
- Launch RStudio on your computer.
- At the R console prompt, install the three R packages needed for this project:
install.packages("plyr") install.packages("ggplot2") install.packages("reshape2")
- Load the R packages as follows:
library(plyr) library(ggplot2) library(reshape2)