Skip to contents

The map of cells lost, kept, absent and gained, for one response.

Usage

# S3 method for class 'timesift_range_change'
plot(x, variable = NULL, ...)

Arguments

x

A range_change() result made from rasters.

variable

The response to draw; the first by default.

...

Passed to terra::plot().

Value

x, invisibly.

Examples

now <- terra::rast(nrows = 10, ncols = 10, vals = rep(c(1, 0), each = 50))
names(now) <- "sp1"
later <- terra::rast(now)
terra::values(later) <- rep(c(0, 1, 1, 0), each = 25)
plot(range_change(now, later))