Uses map
function from maps package, to draw a map of US counties.
PROBABLY WILL REPLACE THIS WITH county_choropleth
county_choropleth choroplethr
or countypointmap in proxistat package
Note: percent map is designed to work with the counties data set It will not work correctly with other data sets if their row order does not exactly match the order in which the maps package plots counties. It is hardcodedd to show quartiles as specific percentile bins, cutpoints in the legend.
1 2 3 4 5 6 7 8 | percent_map(
var,
color = "black",
legend.title,
min = 0,
max = 100,
projection = "polyconic"
)
|
var |
vector of numbers to use for county map |
color |
Default is 'black' - Color like 'blue' for |
legend.title |
text for legend |
min |
Default is 0 |
max |
Default is 100 |
projection |
Default is 'polyconic' - for map |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.