# R makes it easy to install and use packages from CRAN or other repositories
install.packages("ggplot2")
library(ggplot2)
# Some packages contain data, which can be documented
data(package = "ggplot2")
?ggplot2::diamonds
# Beyond object documentation, packages can include short articles to
# describe broader functionality
vignette("ggplot2-specs")
ggplot(diamonds, aes(x, y)) +
geom_bin_2d(show.legend = FALSE) +
scale_y_log10()