extractRaster: Extract values on Raster map. The line is a straight line...

View source: R/Func_GIS.R

extractRasterR Documentation

Extract values on Raster map. The line is a straight line between (0,1). extractRaster

Description

Extract values on Raster map. The line is a straight line between (0,1). extractRaster

Usage

extractRaster(r, xy = NULL, ext = raster::extent(r), plot = T)

Arguments

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.

Examples

library(raster)

SHUD-System/SHUDtoolbox documentation built on Nov. 27, 2024, 5:54 a.m.