plot.tango {smerc} | R Documentation |
tango
.Plots results of tango.test
. If Monte
Carlo simulation was not used to produce x
, then a a density plot of
the (approximate) null distribution of tstat.chisq
is produced, along
with a vertical line for the observed tstat
.
If a Monte Carlo test was used to produce x
, then a scatterplot of
the gof.sim
versus sa.sim
is compared to the observed values
gof
and sa
, respectively.
## S3 method for class 'tango' plot(x, ..., obs.list = list(pch = 20), sim.list = list(pch = 2))
x |
An object of class |
... |
Additional graphical parameters passed to |
obs.list |
A list containing arguments for the
|
sim.list |
A list containing arguments for the
|
data(nydf) coords = as.matrix(nydf[,c("x", "y")]) w = dweights(coords, kappa = 1) x1 = tango.test(nydf$cases, nydf$pop, w) plot(x1) x2 = tango.test(nydf$cases, nydf$pop, w, nsim = 49) plot(x2)