Learn R Programming

siland (version 2.0.5)

plotFsiland.land: Map of Fsiland result

Description

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

Usage

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

Value

an object of class ggplot

Arguments

x

an object resulting from Fsiland

land

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

data

the dataframe describing response variable and the local variables, i.e. the data argument in the call to the Fsiland 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.

See Also

Fsiland

Examples

Run this code
# \donttest{
data(dataSiland)
data(landSiland)
resF=Fsiland(obs~x1+L1+L2,land=landSiland,data=dataSiland,sif="exponential")
plotFsiland.land(x=resF,land=landSiland,data=dataSiland)
plotFsiland.land(x=resF,land=landSiland,data=dataSiland,var=1,lw=20)
plotFsiland.land(x=resF,land=landSiland,data=dataSiland,var=2,lw=20)


# }

Run the code above in your browser using DataLab