Learn R Programming

cdcfluview (version 0.9.4)

cdc_basemap: 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

Examples

Run this code
# NOT RUN {
plot(cdc_basemap("national"))
# }

Run the code above in your browser using DataLab