CommencerCommencer gratuitement

Plotting simple features with geom_sf()

The newest version of ggplot2 includes a geom_sf() function to plot simple features objects natively. This allows you to make maps using familiar ggplot2 syntax! In this exercise, you'll walk through the process of creating a map with ggplot2 step-by-step.

Cet exercice fait partie du cours

Analyzing US Census Data in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Plot the legislative district boundaries
ggplot(___) + 
  ___()
Modifier et exécuter le code