Description Usage Arguments Value
This function generates a map of a US state from the ggplot2 and maps packages while displaying county outlines and the variable of your choice as a color gradient.
1 |
df_path |
The path of your csv file. |
state |
The US state to be visualized. |
county_label |
The column label where the state counties are in your csv file. |
var_label |
The column label where your variable of choice is in your csv file. |
A US state map with counties as a ggplot plot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.