plot.spscan {smacpod} | R Documentation |
Plots object from spscan.test
.
Description
Plots object of class scan
from
spscan.test
.
Usage
## S3 method for class 'spscan'
plot(x, ..., nv = 100, border = NULL, ccol = NULL, clty = NULL, clwd = NULL)
Arguments
x |
An object of class |
... |
Additional graphical parameters passed to the
|
nv |
The number of vertices when drawing the cluster circles. Default is 100. |
border |
The border color of the circle. Default is NULL, meaning black. |
ccol |
Fill color of the circles. Default is NULL, indicating empty. |
clty |
Line type of circles. Default is NULL,
indicting |
clwd |
Line width of circles. Default is NULL,
indicating |
Details
If border
, ccol
, clty
, or
clwd
are specified, then the length of these
vectors must match nrow(x$coords)
.
See Also
Examples
data(grave)
out = spscan.test(grave, case = 2, alpha = 0.1, nsim = 49)
plot(out, chars = c(1, 20), main = "most likely cluster",
border = "orange", ccol = NA)
# change color, lty, lwd of circles
set.seed(2)
out2 = spscan.test(grave, case = 2, alpha = 0.8, nsim = 49)
plot(out2, chars = c(1, 20), border = "blue")
plot(out2, chars = c(1, 20), border = c("blue", "orange"),
clwd = c(3, 2), clty = c(2, 3))
[Package smacpod version 2.6 Index]