plotsiland.land: Map of siland result

View source: R/plotsiland.land.R

plotsiland.landR Documentation

Map of siland result

Description

Function creating a map of siland result, i.e. estimatied spatial influence of each landscape variable or for the cumulative effect of all variables.

Usage

plotsiland.land(x, land, data, var = 0, lw = 100, xlim=NULL, ylim=NULL,plot=T)

Arguments

x

an object resulting from siland

land

the object of class sf describing the landscape variable, i.e. the land argument in the call to the siland function that computed x

data

the dataframe describing response variable and the local variables, i.e. the data argument in the call to the siland function that computed x.

var

a vector containing the numbers (numeric) of the mapped landscape variables. If var=0 (by default), the cumulative effect of all landscape variables is represented.

lw

the number of pixels on x-axis and y-axis for the graphical representation. A too high value can lead to memory allocation problems. By default lw=100.

xlim

a length-2 numeric vector, lower and upper limits of x-axis.

ylim

a length-2 numeric vector, lower and upper limits of y-axis.

plot

a logical (TRUE by default). If TRUE, the result is a graphic. If FALSE, the result is a dataframe of the cumulative spatial influence of the landscape variable(s) var.

Value

an object of class ggplot

See Also

siland

Examples


data(dataSiland)
data(landSiland)
res=siland(obs~x1+L1+L2,land=landSiland,data=dataSiland,sif="exponential")
plotsiland.land(x=res,land=landSiland,data=dataSiland)
#plotsiland.land(x=res,land=landSiland,data=dataSiland,var=1,lw=20)
#plotsiland.land(x=res,land=landSiland,data=dataSiland,var=2,lw=20)


siland documentation built on March 31, 2023, 7:33 p.m.