官网下载:https://cran.r-project.org/

图形界面Rstudio: https://www.rstudio.com/

维基百科:https://en.wikipedia.org/wiki/R_(programming_language)(programming_language)

R Journal:https://journal.r-project.org/

R Manuals:https://cran.r-project.org/manuals.html

R Packages: https://cran.r-project.org/web/packages/index.html

Microsoft R Application Network: https://mran.microsoft.com/

R for excel

https://www.rforexcelusers.com/

Quick-R

https://www.statmethods.net/

R bloggers

https://www.r-bloggers.com/

Data Science Made simple

http://www.datasciencemadesimple.com/learn-r-what-is-r/

Database using R

http://db.rstudio.com/

Data Camp

https://www.datacamp.com/home

Try R

http://tryr.codeschool.com/

Journal of Statistical Software

https://www.jstatsoft.org/index


 Wickham, H., & Grolemund, G. (2017). R for Data Science: Import, Tidy, Transform, Visualize, and Model Data. Sebastopol, CA: O’Reilly Media.

https://r4ds.had.co.nz/

The easiest place to start when turning an exploratory graphic into an expository graphic is with good labels. You add labels with the labs() function. This example adds a plot title:

ggplot(mpg, aes(displ, hwy)) +
  geom_point(aes(color = class)) +
  geom_smooth(se = FALSE) +
  labs(title = "Fuel efficiency generally decreases with engine size")


Histogram and density plots

The histogram and density plots are used to display the distribution of data.

# Histogram  plot
# Change histogram fill color by group (sex)
qplot(weight, data = wdata, geom = "histogram",
      fill = sex)
# Density plot
# Change density plot line color by group (sex)
# change line type
qplot(weight, data = wdata, geom = "density",
    color = sex, linetype = sex)