extractRaster | R Documentation |
extractRaster
Extract values on Raster map. The line is a straight line between (0,1).
extractRaster
extractRaster(r, xy = NULL, ext = raster::extent(r), plot = T)
r |
Raster |
xy |
coordinates of the line, dim=(Npoints, 2); x and y must be in [0, 1] |
ext |
extension of value xy. |
plot |
Whether plot result. |
library(raster)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.