A function that takes a map.data data frame and creates county specific metrics on a state by state basis, depending on the input provided.
1 | state_plot(map.data, currentState = "california")
|
map.data |
A data frame containing the full data set, with a state column appended on. |
currentState |
A character string that has to be one of the 50 US states. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.