Custom colors for subset of sf object

Опубликовано: 21 Июнь 2026
на канале: Joshua French
162
2

A simple approach for using custom colors for a subset of the geometries contained in an sf object's geometry list column.

An html version of this material used in the video can be downloaded to your current working direction (run `getwd()` in the Console to see where this is) by running the following command in the R Console:

download.file("https://raw.githubusercontent.com/jfr...", "05-simple-features-wrangling-visualizing.nb.html")

The raw R Markdown code used to generate the html file can be obtained by toggling the "Code" box in the upper-right corner of the html file and selecting "Download Rmd".