Learn R Programming

smacpod (version 1.4.1)

plot.scan: Plots object from spscan.test of class scan.

Description

Plots object from spscan.test of class scan.

Usage

# S3 method for scan
plot(x, ..., nv = 100, border = NULL, ccol = NULL,
  clty = NULL, clwd = NULL)

Arguments

x

An object of class scan to be plotted.

...

Additional graphical parameters passed to the spatstat::plot.ppp function.

nv

The number of verticies to draw the circle. 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 lty = 1.

clwd

Line width of circles. Default is NULL, indicating lwd = 2 for the most likely cluster and lwd = 1 for the rest.

See Also

plot.ppp

Examples

Run this code
# NOT RUN {
data(grave)
out = spscan.test(grave, case = 2, alpha = 0.1)
plot(out, chars = c(1, 20), main = "most likely cluster")
# }

Run the code above in your browser using DataLab