plot.vads | R Documentation |
Plot local density estimates returned by functions dval,
kval or k12val
.
## S3 method for class 'vads'
plot(x, main, opt, select, chars, cols, maxsize, char0, col0, legend, csize, ...)
x |
an object of class |
main |
by default, the value of argument x, otherwise a text to be displayed as a title of the plot. |
opt |
(optional) a character string to change the type of values to be plotted (see Details). |
select |
(optional) a vector of selected distances in |
chars |
one of |
cols |
(optional) the colour used for the plotting symbols. Black colour is the default. |
maxsize |
(optional) maximum size of the circles/squares plotted. By default, maxsize is automatically adjusted to plot size. |
char0 |
(optional) the plotting symbol used to represent null values. By default, null values are not plotted. |
col0 |
(optional) the colour used for the null values plotting symbol. By default, the same as argument |
legend |
If |
csize |
scaling factor for font size so that actual font size is |
... |
extra arguments that will be passed to the plotting functions |
Function plot.vads
displays a map of first-order local density or second-order local neighbour density values as symbols with areas proportional
to the values estimated at the plotted points.
Positive values are represented by coloured symbols, while negative values are represented by open symbols. The plotted function values depend upon the
type of 'vads'
object:
if class(x)=c("vads","dval")
, the plotted values are first-order local densities and argument opt="dval"
by default, but
is potentially one of c("dval","cval")
returned by dval
.
if class(x)=c("vads","kval")
or class(x)=c("vads","k12val")
, the plotted values are univariate or bivariate second-order
local neighbour densities. Argument opt="lval"
by default, but is potentially one of c("lval","kval","nval","gval")
returned by kval
and k12val
.
none.
dval
,
kval
,
k12val
.
data(BPoirier)
BP <- BPoirier
## Not run: local density in a rectangle sampling window
dswr <- dval(spp(BP$trees, win=BP$rect), 25, 1, 11, 9)
plot(dswr)
## Not run: display only distance r from 5 to 10 with null symbols as red crosses
plot(dswr, select=c(5:10), char0=3, col0="red")
## Not run: local L(r) values in a circular sampling window
lvswc <- kval(spp(BP$trees, win=c(55,45,45)), 25, 0.5)
plot(lvswc)
## Not run: display square symbols in blue for selected values of r and remove title
plot(lvswc, chars="squares", cols="blue", select=c(5,7.5,10,12.5,15), main=NULL)
## Not run: local K12(r) values (1="beech", 2="oak") in a complex sampling window
k12swrt <- k12val(spp(BP$trees, win=BP$rect, tri=BP$tri1, marks=BP$species), 25, 1)
plot(k12swrt, opt="kval")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.