Plotting in R

2019-10-13 — 2022-03-05

Wherein R’s plotting capabilities are surveyed, and it is noted that plots are served via Shiny to power web applications, ggplot2 is emphasized with extensions and interactive editors such as ggedit

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")