percent_map: Color-coded map of US counties (choropleth)

Description Usage Arguments

View source: R/maphelpers.R

Description

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.

Usage

1
2
3
4
5
6
7
8
percent_map(
  var,
  color = "black",
  legend.title,
  min = 0,
  max = 100,
  projection = "polyconic"
)

Arguments

var

vector of numbers to use for county map

color

Default is 'black' - Color like 'blue' for colorRamp from white to color to generate a vector of gradations of fill colors for the map

legend.title

text for legend

min

Default is 0

max

Default is 100

projection

Default is 'polyconic' - for map


ejanalysis/batch.summarizer documentation built on Sept. 6, 2021, 3:41 a.m.