cdc_basemap: Retrieve CDC U.S. Basemaps

View source: R/coverage-map.r

cdc_basemapR Documentation

Retrieve CDC U.S. Basemaps

Description

The CDC FluView application uses a composite basemaps of coverage areas within the United States that elides and scales Alaska, Hawaii, Puerto Rico & the Virgin Islands and some further provide elided and scaled breakouts for New York City and the District of Columbia.

This function retrieves the given shapefile, projects to EPSG:5069 and returns it as an sf (simple features) object.

Usage

cdc_basemap(
  basemap = c("national", "hhs", "census", "states", "spread", "surv")
)

Arguments

basemap

select the CDC basemap. One of:

  • "national": outline of the U.S. + AK, HI, PR + VI

  • "hhs": outline of the U.S. + HHS Region Outlines + AK, HI, PR + VI

  • "census": outline of the U.S. + Census Region Outlines + AK, HI, PR + VI

  • "states": outline of the U.S. + State Outlines + AK, HI, PR + VI

  • "spread": outline of the U.S. + State Outlines + AK, HI, PR + VI & Guam

  • "surv": outline of the U.S. + State Outlines + AK, HI, PR + VI

Note

These are just the basemaps. You need to pair it with the data you wish to visualize.

Examples

## Not run: 
plot(cdc_basemap("national"))

## End(Not run)

hrbrmstr/cdcfluview documentation built on Nov. 25, 2022, 7:55 p.m.