I am attempting to plot specific layers from a set of time-series rasters contained in RData format. I used the code below:
library(maptools)
library(maps)
library(rgdal)
library(sp)
library(spdplyr)
library(raster)
library(rgeos)
loadset <- load("MOD13Q1_MYD13Q1_EVI_97_2008_89_2009_RData.RData")
getset <- get(loadset) #successfully extracted the contents of RData file
set <- raster::stack(getset)
However when I start to plot or check the histogram using this code:
r1 <- raster(set, layer=1)
I get an error:
Error in .local(.Object, ...) :
What does this error mean and what's the workaround?
RData files can be found HERE.