Learn R Programming

siland (version 1.4.6)

plotFsiland.land: Spatial representation of the landscape influence

Description

The function gives a spatial representation of landscape influence for the different variables. Representation can be done for each variable, or for the cumulative effects of all variables.

Usage

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

Arguments

x

an object of class Fsiland obtained with fucntion Fsiland()

land

an object oc class sf that gives the landscape variables for observations.

data

a dataframe containing the response variable and the local variables. The dataframe must be the same than the one used to obtain the object x.

var

a numeric value that gives the landscape variable for the spatial representation. If var=0 (by default), the representation gives the cumulative effects for all landscape variables.

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 vector of two numbers (min and max on x-aixs) to give a representation for a sub-region. By default, xlim=NULL.

ylim

a vector of two numbers (min and max on y-axis) to give a representation for a sub-region. By default, ylim=NULL.

Value

an object of class ggplot

See Also

Fsiland

Examples

Run this code
# NOT RUN {
data(dataSiland)
data(landSiland)
resE=Fsiland(y~locvar,land=landSiland,data=dataSiland,sif="exponential",family=gaussian)

plotFsiland.land(x=resE,land=landSiland,data=dataSiland)
plotFsiland.land(x=resE,land=landSiland,data=dataSiland,var=1,lw=20)
# }

Run the code above in your browser using DataLab