smoov: Simple mapping tool

Description Usage Arguments Value Geographic Subsetting Parameters Aesthetic Parameters

View source: R/smoov.R

Description

Simple mapping tool

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
smoov(
  geo,
  data = NULL,
  value = NULL,
  id = "fips",
  year = 2010,
  detailed = FALSE,
  class = "sf",
  states = NULL,
  counties = NULL,
  tracts = NULL,
  ...
)

Arguments

geo

Character string; Provide level of map geography e.g. county. See details.

data

Dataframe; ID columns matching the level of geography. See details.

value

character; Name of the column in data with which a choropleth is created. If no column is provided, a map of boundaries is produced. If more than one value is inputted, a faceted map is created.

id

character; "fips" by default. Name of the column in data that provides the relevant geography identifier (e.g. FIPS code).

year

integer; Currently either 2000 or 2010. Year of census geography. The most recent year by default.

detailed

logical; FALSE by default. If TRUE, then more detailed geographies are used when available

class

"sp" or "sf"; "sf" by default.

...

Optional aesthetic parameters, subsetting parameters. See details below.

Value

1
2
Output will be a `ggplot` base layer onto which any `ggplot` layer may
be added. 

Geographic Subsetting Parameters

Aesthetic Parameters


harveybarnhard/smoov documentation built on Nov. 19, 2021, 11:06 a.m.