From the course: Creating Maps with R

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Challenge: Visualize state coastline length with choropleth

Challenge: Visualize state coastline length with choropleth

From the course: Creating Maps with R

Challenge: Visualize state coastline length with choropleth

(upbeat music) - [Narrator] For this challenge, I would like you to use ggplot2 to create a continuous variable choropleth, showing a number of kilometers of coastline for each state in a continuous United States of America. I'd like you to use the vividest color palette for the fill scale. And I would like you to also improve the readability of the legend by adding commas between the thousand mark. Finally, I would like you to add a legend item for the NA regions using a synthetic aesthetic.

Contents