Skip to contents

Make spatial predictions from multispeciesPP::predict.multispeciesPP by passing in data as terra::SpatRaster layers and returning a SpatRaster.

Usage

predict_mpp_rast(
  model,
  data,
  sp,
  type = c("response", "link"),
  filename = NULL,
  overwrite = FALSE
)

Arguments

model

A multispeciesPP model object

data

SpatRaster object with covariate and bias layers

sp

character Species name to predict

type

character. Prediction scale — "response" or "link".

filename

characterto save output

overwrite

logical overwrite existing filename?

Value

SpatRaster