For ST411/511 we will RStudio as our integrated development environment (IDE) for R. It provides an uniform experience over all operating systems and has a nice built-in editor.
There are three steps! You need to:
RStudio and R are also available in your lab computer room, the main computer lab in the basement of Milne, and Cordley 3003.
Visit http://cran.r-project.org/.
Visit http://www.rstudio.org/download/desktop
Download the recommended version, open the file and install RStudio.
Run RStudio. In the “Console”, type
install.packages(c("Sleuth3", "ggplot2"))
You might be asked Would you like to create a personal library'~/Library/R/**/library' to install packages into? (y/n)
It’s a good idea, type y
.
You should be good to go! Test everything by copying and pasting the following into the console:
library(Sleuth3)
library(ggplot2)
qplot(Sex, Salary, data = case0102, geom = "boxplot")
You should see a plot very like that in Display 1.12 in Sleuth.