Make a USA map with all the counties colored in
1 2 |
df |
The data frame of the counties in the US and the data to plot |
county_index |
The numerical index (base 1) of the column which contains the FIPS code |
plot_index |
The numerical index (base 1) of the column which contains the data we want to plot |
save |
T/F determines if we want to save the plot |
filename |
If we want to save, where are we saving? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.