1.安裝R
sudo apt-get install r-base
2.安裝RStudio
wget https://download1.rstudio.org/rstudio-1.0.136-amd64.deb sudo apt-get install gdebi-core sudo apt-get install libapparmor1 sudo gdebi rstudio-1.0.136-amd64.deb
which rstudio
rstudio #打開RStudio
3.安裝RStudio Server
sudo apt-get install gdebi-core wget https://download2.rstudio.org/rstudio-server-1.0.136-amd64.deb sudo gdebi rstudio-server-1.0.136-amd64.deb
rstudio-server start
在網頁中輸入 www.服務器IP地址:8787/ (遠程服務器) 或http://localhost:8787/ (本地) 登陸之后效果如下:,就可以用了
默認登錄賬戶密碼為系統登錄的賬戶與密碼
4.在Rstudio里安裝ggplot2
install.packages('plyr') install.packages('digest') install.packages('gtable') install.packages('reshape2') install.packages('scales') install.packages('proto') install.packages('ggplot2')
