plot.rd_ras: plot.rd_ras

View source: R/plot.rd_ras.R

plot.rd_rasR Documentation

plot.rd_ras

Description

Plot method for rd_ras object

Usage

## S3 method for class 'rd_ras'
plot(x, n = NULL, col, verbose = TRUE, nrow, ncol, ...)

Arguments

x

rd_ras object with randomized raster.

n

Integer with number or vector of ids of randomized raster to plot. See Details section for more information.

col

Vector with color palette used for plotting.

verbose

Logical if messages are printed.

nrow, ncol

Integer with number of rows and columns of plot grid.

...

Not used.

Details

Function to plot randomized raster. If n is a single number, n randomized raster will be sampled to plot. If n is a vector, the corresponding raster will be plotted. col, nrow, ncol are passed to plot.

Value

void

See Also

randomize_raster
translate_raster

Examples

## Not run: 
landscape_classified <- classify_habitats(terra::rast(landscape), n = 5, style = "fisher")
landscape_random <- randomize_raster(landscape_classified, n_random = 19)
plot(landscape_random)

## End(Not run)


r-spatialecology/shar documentation built on March 18, 2024, 2:17 a.m.