shar (version 1.1)

plot_randomized_raster: plot_randomized_raster

Description

Plot randomized raster

Usage

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.

Value

plot

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.

Examples

Run this code
# 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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace