Plotting in R

October 13, 2019 — March 5, 2022

computers are awful
photon choreography
R
statistics

Plotting for R is a major selling point of the platform. And thanks to projects like shiny, it is not only for your own computer but can even be used to backend webapps.

1 native

Basic R plotting via the plot command is functional.

2 ggplot2

More tidyverse! Probably the favourite plotting system for R these days.

Kieran Healy advises the following setup for visualisation in the tidyverse style:

my_packages <- c("tidyverse", "broom", "coefplot", "cowplot",
    "gapminder", "GGally", "ggrepel", "ggridges", "gridExtra",
    "interplot", "margins", "maps", "mapproj", "mapdata",
    "MASS", "quantreg", "scales", "survey", "srvyr",
    "viridis", "viridisLite", "devtools")

install.packages(my_packages,
    repos = "http://cran.rstudio.com")