- Download & Install R
R Homepage
http://www.r-project.org/
서울대 mirror
http://healthstat.snu.ac.kr/CRAN/
- R Studio Download
http://www.rstudio.com/products/rstudio/download/
R Studio 가 참 훌륭한것 같음!
- 시각화 Plugin (ggplot)
http://docs.ggplot2.org/current/
- install ggplot
> install.packages("ggplot2")
- 처음에 실행해서 ggplot2 를 설치하려고 하면
> tar: Failed to set default locale
뭐 이런 메시지 나오는데, Mac Terminal 에
$ defaults write org.R-project.R force.LANG en_US.UTF-8
http://davidprakash.blogspot.kr/2011/05/r-error-tar-failed-to-set-default.html
이렇게 하고 재시작 하면 됨..
- 간단한 그래프 그려보기
> x = 1:1000
> y = x^2
> plot(x, y)