Learn R Programming

siland (version 1.2)

plotcontri: Plot contributions

Description

Plot contributions for the different landscape variables

Usage

plotcontri(res, land, data, type = 0, numvar = NULL)

Arguments

res

a result form siland estimation

land

the landscape associated to the estimation res

data

the observations associated to the estimation res

type

type of plot, 0 or 1. For type equal to 0 (by default), a graphic for each local and landscape variable is displayed. For type equal to 1, the rate of landscape with local contribtions is displayed.

numvar

a number indicating the variable that has to be displayed. If NULL (by default), graphics are displayed following the argument type.

Examples

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

plotcontri(res,landSiland,dataSiland,type=1)
plotcontri(res,landSiland,dataSiland,numvar=2)
# }

Run the code above in your browser using DataLab