plotsiland.land {siland} | R 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 |
land |
the object of class sf describing the landscape variable, i.e. the |
data |
the dataframe describing response variable and the local variables, i.e. the |
var |
a vector containing the numbers (numeric) of the mapped landscape variables. If |
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)