cdc_basemap: Retrieve CDC U.S. Basemaps

Description Usage Arguments Note Examples

View source: R/coverage-map.r

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

1
2
3
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

1
2
3
4
## Not run: 
plot(cdc_basemap("national"))

## End(Not run)

cdcfluview documentation built on May 22, 2021, 5:07 p.m.