In order to determine the regions of Maine with the greatest risk associated with Lyme disease, it is important to understand where Lyme disease cases are most often reported as well as how the population of Maine is distributed across the state. While it is nearly impossible to gather tick population data, comparing human population numbers to Lyme disease prevalence data may provide valuable insight into where ticks tend to congregate as well as the risk of contracting Lyme disease in different parts of the state.
Lyme disease prevalence data from 2019-2022 for the state of Maine is publicly available on the University of Maine website. Data for several other tickborne diseases is also available on the website.
Population data for the state of Maine is publicly available via the U.S. Census Bureau records. This data exists in several different spatial capacities, so determining the most useful spatial unit is very important when working with the data. The data itself can be imported using a unique API key in RStudio.
# apply unique census api key
census_api_key("5177724b01a7fe4714097e711cb95230c37cfce7", install = TRUE, overwrite = TRUE)
# import census data
## spatial unit --> place
## variable of interest --> population
census_place_df <- get_acs(geography = "place", variables = c("B01003_001E"), state = "ME", geometry = TRUE)
# import census data
## spatial unit --> county subdivision
## variable of interest --> population
census_county_sub_df <- get_acs(geography = "county subdivision", variables = c("B01003_001E"), state = "ME", geometry = TRUE)
Differences in the size and coverage of data points from the Census data can be visualized using static spatial plots. Although the “place” data does a good job displaying the major population centers of Maine, the “county subdivision” data appears to have more complete coverage of the state.
The population data and the tick prevalence data can be explored relative to one another on the interactive leaflet plot shown below. It is interesting to see that the majority of the tick cases in the data are located on the coast, and not necessarily in the largest population centers in the state.