powered by
Rescale a SpatVector or SpatRaster. This may be useful to make small inset maps.
inset
# S4 method for SpatRaster rescale(x, f=0.5, x0, y0, ...)# S4 method for SpatVector rescale(x, f=0.5, x0, y0, ...)
# S4 method for SpatVector rescale(x, f=0.5, x0, y0, ...)
SpatVector or SpatRaster
numeric. The scaling factor (a fraction)
numeric. x-coordinate of the center of rescaling. If missing, the center of the extent of x is used
x
numeric. y-coordinate of the center of rescaling. If missing, the center of the extent of x is used
additional arguments. None implemented
Same as x
t, shift, flip, rotate, inset
t
shift
flip
rotate
# NOT RUN { f <- system.file("ex/lux.shp", package="terra") v <- vect(f) w <- rescale(v, 0.2) plot(v) lines(w, col="red") # }
Run the code above in your browser using DataLab