rasterize | R Documentation |
Trip rasterize.
x |
|
y |
Raster* object |
field |
attribute from which differences will be calculated, defaults to the time-stamp between trip locations |
RasterLayer
d <- data.frame(x=1:10, y=rnorm(10), tms=Sys.time() + 1:10, id=gl(2, 5))
tr <- trip(d, c("tms", "id"))
tr$temp <- sort(runif(nrow(tr)))
r <- rasterize(tr)
rasterize(tr, grid = r)
rasterize(tr, r, field = "temp")
rasterize(tr, method = "density")
rasterize(tr, method = "density", grid = r)
rasterize(tr, r, field = "tms")
rasterize(tr, r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.