Plot local density estimates returned by functions dval,
kval or k12val
.
# S3 method for vads
plot(x, main, opt, select, chars, cols, maxsize, char0, col0, legend, csize, ...)
none.
an object of class 'vads'
(see Details).
by default, the value of argument x, otherwise a text to be displayed as a title of the plot. main=NULL
displays no title.
(optional) a character string to change the type of values to be plotted (see Details).
(optional) a vector of selected distances in x$r
. By default, a multiple window displays all distances.
one of c("circles","squares")
plotting symbols with areas proportional to local density values. By default, circles are plotted.
(optional) the colour used for the plotting symbols. Black colour is the default.
(optional) maximum size of the circles/squares plotted. By default, maxsize is automatically adjusted to plot size.
(optional) the plotting symbol used to represent null values. By default, null values are not plotted.
(optional) the colour used for the null values plotting symbol. By default, the same as argument cols
.
If legend = TRUE
(the default) a legend for the plotting values is displayed.
scaling factor for font size so that actual font size is par("cex")*csize
. By default csize = 1
.
extra arguments that will be passed to the plotting functions plot.swin
,
plot.default
, symbols
and/or points
.
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
.
dval
,
kval
,
k12val
.