Draft

Recreating Washington Post graphics with {terra} and {ggplot2}

R
hydrology
Author
Affiliation

Manaaki Whenua – Landcare Research

Published

September 3, 2022

Prerequisites

Code
library(wildlandhydRo)
library(dplyr)
library(sf)
library(ggplot2)

Data load

Watershed

Code
pitt <- tibble(lon = -79.976389,
             lat = 40.439722)

pitt <- sf::st_as_sf(pitt,
                     coords = c('lon', 'lat'))

basin <- get_Basin(pitt)

Check, if everything ok with it

Code
library(mapview)
mapview::mapview(basin)
Figure 1: Overview map

Citation

BibTeX citation:
@online{tsyplenkov2022,
  author = {Tsyplenkov, Anatoly},
  title = {Recreating {Washington} {Post} Graphics with \{Terra\} and
    \{Ggplot2\}},
  date = {2022-09-03},
  url = {https://anatolii.nz/posts/2022-09-03-washington-post/washington-post.html},
  langid = {en}
}
For attribution, please cite this work as:
Tsyplenkov, Anatoly. 2022. “Recreating Washington Post Graphics with {Terra} and {Ggplot2}.” September 3, 2022. https://anatolii.nz/posts/2022-09-03-washington-post/washington-post.html.