FedData github page
Makesure to download the development version. In the CRAN version downloading get_nlcd()
is broken.
devtools::install_github("ropensci/FedData")
library(FedData)
library(tigris) ## to get county level data
library(sf)
library(raster)
library(tidyverse)
co_counties<-tigris::counties(state="Colorado")
extent_for_dat<-co_counties%>%
dplyr::filter(NAME %in% c("Montezuma"))
nlcd<-FedData::get_nlcd(extent_for_dat, label="sw_colorado")
plot(nlcd)