Learn R Programming

SpatialEpi (version 1.2.8)

NYleukemia_sf: Upstate New York Leukemia

Description

Census tract level (n=281) leukemia data for the 8 counties in upstate New York from 1978-1982, paired with population data from the 1980 census. Note that 4 census tracts were completely surrounded by another unique census tract; when applying the Bayesian cluster detection model in bayes_cluster(), we merge them with the surrounding census tracts yielding n=277 areas.

Usage

NYleukemia_sf

Arguments

Format

An sf 'POLYGON' data frame with 281 rows and 4 variables:

geometry

Geometric representation of 8 counties in upstate New York

cases

Number of cases per county

population

Population of each census tract

censustract.FIPS

11-digit Federal Information Processing System identification number for each county

Examples

Run this code

# Static map of NY Leukemia rate per county
library(ggplot2)
if (FALSE) {
ggplot(NYleukemia_sf) + 
  geom_sf(aes(fill= cases/population)) + 
  scale_fill_gradient(low = "white", high = "red")
  }

Run the code above in your browser using DataLab