Description Usage Arguments Value Examples
View source: R/easy_choropleths.R
Creates a choropleth of USA by county
1 | county_map(data, state = "all")
|
data |
Your data frame to make a choropleth. Contains three columns, county name, county state and your variable of intrest, in that order |
state |
A string contianing the state name or abbriviation that you would like to map. Default is "all" which maps the entire USA |
An interactive map, which is a HTML widget object
1 | county_map(median_income, state = "CA")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.