These functions plot correlagrams previously computed with
correlogram.formula
.
# S3 method for correlogram
plot(x, legend = TRUE, test.level = 0.05,
col = c("grey", "red"), type = "b", xlab = "",
ylab = "Moran's I", pch = 21, cex = 2, ...)
# S3 method for correlogramList
plot(x, lattice = TRUE, legend = TRUE,
test.level = 0.05, col = c("grey", "red"),
xlab = "", ylab = "Moran's I",
type = "b", pch = 21, cex = 2, ...)
an object of class "correlogram"
or of class
"correlogramList"
(both produced by
correlogram.formula
).
should a legend be added on the plot?
the level used to discriminate the plotting symbols with colours considering the P-values.
two colours for the plotting symbols: the first one is used
if the P-value is greater than or equal to test.level
, the
second one otherwise.
the type of plot to produce (see
plot
for possible choices).
an optional character string for the label on the x-axis (none by default).
the default label on the y-axis.
the type of plotting symbol.
the default size for the plotting symbols.
when plotting several correlograms, should they be plotted in trellis-style with lattice (the default), or together on the same plot?
other parameters passed to the plot
or lines
function.
When plotting several correlograms with lattice, some options have no
effect: legend
, type
, and pch
(pch=19
is
always used in this situation).
When using pch
between 1 and 20 (i.e., non-filled symbols, the
colours specified in col
are also used for the lines joining
the points. To keep black lines, it is better to leave pch
between 21 and 25.