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 Sept. 12, 2024, 7:42 a.m.