View source: R/get_md_tigris.R
get_md_tigris | R Documentation |
Get package data with Maryland counties, U.S. Congressional District, or Census designated places by name or GeoID or use the tigris package to download state data.
get_md_tigris(
name = NULL,
type = "counties",
crs = getOption("mapmaryland.crs", default = 3857),
erase_water = FALSE,
...
)
name |
Name matching a value in the namelsad, namelsad, or geoid columns
of md_counties, md_census_places, md_congressional_districts, or one
of the data sets available for download with {tigris}; Default: |
type |
Type of data to return, Default: "counties"; See details for supported options. |
crs |
coordinate reference system. Defaults to
|
erase_water |
If |
... |
Additional parameters passed on to {tigris} functions. |
Use {mapmaryland} packaged data or use tigris U.S. Census Bureau API:
Supported options that access data included with the {mapmaryland} package include "counties", "census places", "congressional districts", "legislative districts", and "water".
Options that access data by calling one of several tigris functions for downloading data from the U.S. Census Bureau API include "senate district", "tracts", "block groups", "blocks", "pumas", "voting districts", "zctas", "roads", "primary secondary roads", "area water", "linear water", and "landmarks".
tigris functions that do not use a "state" parameter (e.g. tigris::coastline or tigris::rails) are not supported by this function.
A simple feature object matching the type provided.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.