Description Usage Arguments Value
This function generates a map of the lower 48 US states from the ggplot2 and maps packages while displaying the variable of your choice as a color gradient.
1 | us_map(df_path, state_label, var_label)
|
df_path |
The path of your csv file. |
state_label |
The column label where the US states are in your csv file. |
var_label |
The column label where your variable of choice is in your csv file. |
A US map as a ggplot plot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.