tests/raster.R

library(spacetime)
if (require(raster, quietly = TRUE)) {
 x <- brick(system.file("external/rlogo.grd", package="raster"))
 x <- setZ(x, as.Date(1:nlayers(x), origin = "1970-01-01"))
 stplot(x)
}

Try the spacetime package in your browser

Any scripts or data that you put into this service are public.

spacetime documentation built on April 6, 2023, 1:09 a.m.