plot_randomized_raster: plot_randomized_raster

Description Usage Arguments Details Value Examples

View source: R/plot_randomized_raster.R

Description

Plot randomized raster

Usage

1
plot_randomized_raster(raster, n = NULL, col, verbose = TRUE, nrow, ncol)

Arguments

raster

List with randomized raster

n

Number of randomized rasters to plot. See details for more information.

col

Color palette used for plotting.

verbose

Print messages.

nrow, ncol

Number of rows and columns.

Details

Function to plot randomized rasters. If n is only a single number, n randomized rasters will be sampled. If n is a vector, the corresponding rasters will be plotted.

Value

plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
landscape_classes <- classify_habitats(raster = landscape, classes = 5)
landscape_random <- randomize_raster(raster = landscape_classes, n_random = 19)

plot_randomized_raster(landscape_random)

palette <- viridis::viridis(n = 5)
plot_randomized_raster(landscape_random, n = 5, col = palette, nrow = 3, ncol = 2)

## End(Not run)

mhesselbarth/SHAR documentation built on Oct. 17, 2020, 8:58 p.m.