countypointmap: Simple map of color-coded counties, wrapper for...

View source: R/countypointmap.R

countypointmapR Documentation

Simple map of color-coded counties, wrapper for county_choropleth

Description

very simple mapping of color coded map of US counties.

Usage

countypointmap(
  x,
  query = NULL,
  state_zoom = NULL,
  title = "",
  num_colors = 1,
  ...
)

Arguments

x

required vector of numeric values to plot

query

flexible way to define what locations - default is all US counties. Can be a set of countyfips or full names like Cook County IL or even one or more states - See get.county.info

state_zoom

optional but more flexible than in county_choropleth, which requires it be the full state name all lowercase. This function instead accepts case-insensitive state name or two letter state abbreviation or state fips as number or text.

title

required, used in county_choropleth

num_colors

Default is 1 (unlike default in county_choroplethr) for graded colors to show outliers well, passed to county_choropleth . Max allowed is 9.

...

Additional parameters like state_zoom (but in ), to pass to county_choropleth

Details

This is just a wrapper for county_choropleth but it is much more flexible in how the counties are specified. While county_choropleth requires statecounty fips numbers, and zooms in on a state defined by 2-digit fips, this wrapper lets you specify counties by full name like Cook County IL or even one or more states. It is buggy as drafted, however.

Also note acs package is useful such as for county_choropleth_acs('B01001', endyear = 2018, state_zoom = 'new york')

Value

Just draws a map

See Also

county_choropleth pointmap


ejanalysis/proxistat documentation built on Jan. 1, 2025, 10:02 a.m.