plot.spscan | R Documentation |
spscan.test
.Plots object of class scan
from
spscan.test
.
## S3 method for class 'spscan'
plot(x, ..., nv = 100, border = NULL, ccol = NULL, clty = NULL, clwd = NULL)
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 |
If border
, ccol
, clty
, or
clwd
are specified, then the length of these
vectors must match nrow(x$coords)
.
plot.ppp
, draw.circle
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.