plot.terrain | R Documentation |
Plot terrain
## S3 method for class 'terrain' plot(x, ...)
x |
a terrain object |
... |
additional arguments passed on to plot method for spatRaster |
See terra's plot function for additional arguments.
library(terra) fn <- system.file("extdata/red_butte_dem.tif", package = "hiker") red_butte_dem <- rast(fn) terrain <- hf_terrain(red_butte_dem) # plot(terrain, main = "Travel Cost")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.