How to plot a color coded map of USA in R

preview_player
Показать описание
In this video I teach you how to create a color coded map of the USA in R using the graphing package ggplot2.

My SkillShare courses: (includes a 1 month free trial)

Рекомендации по теме
Комментарии
Автор

This video was THE single thing I needed, completely saved me for my Data Science final, genuinely thank you so much.

semso
Автор

I have rankings for each state, with values ranging between 2 and -2. I'd like to visually represent the data by coloring states with positive rankings green and those with negative rankings red. The color intensity should indicate how close a state's ranking is to 2 or -2. Could you please provide assistance with this task?

Mohammed-ylwr
Автор

Well done. It would be nice to see this on the county level. Additionally the base USA map is usually misinformative because it does not adjust boundaries for the population sizes of states. That makes the Midwest and Intermountain states look disproportionately large for their minor populations. It would be nice to see this with the state boundaries adjusted for their relative population sizes.

kurtfisher
Автор

How could one add labels for the states? Or add labels for each state being democrat or republican?

anyagupta
Автор

Brief but to the point.
I used dplyr's join functions instead of merge. No sorting was required and the map was not fragmented. By the way "Mercator" is considered the worst form of map projection. Albers does a better job.
Thanks.

haraldurkarlsson
join shbcf.ru