points.geodata(x, coords=x$coords, data=x$data, data.col = 1, borders = NULL,
pt.divide=c("data.proportional","rank.proportional",
"quintiles", "quartiles", "deciles", "equal"),
lambda = 1, trend = "cte", abs.residuals = FALSE,
weights.divide = NULL, cex.min, cex.max, cex.var,
pch.seq, col.seq, add.to.plot = FALSE,
x.leg, y.leg, dig.leg = 2,
round.quantiles = FALSE, graph.pars = FALSE,
permute = FALSE, ...)
coords
and
data
described next. Typically an object of the class
"geodata"
- a coords
and data
geodata$coords
.geodata$data
.data
is a matrix with columns corresponding to different
variables or simulations.DETAILS
below for the available options.
Defaults to pt.divide = "data.proportional"
."cte"
(constant mean - default option), "1st"
(a first order polynomial
on the coordinates), "2nd"
(a second order polynomial
on the coordinates), orTRUE
and teh value passed to
the
argument trend
is different from "cte"
the point sizes
are proportional to absolute values of the residuals.NULL
.cex
. This value defines the size of the point corresponding the minimum
of the data. Defaults to 0.5.cex
. This value defines the size of the point corresponding the maximum
of the data. If pt.divide = "equal"
it is used to set
the value for the
graphical parameter c
pch
.col
.TRUE
the points are added
to the current plot otherwise a display is open. Defaults to FALSE
.x
and y
location of the legend.FALSE
.TRUE
the graphics
parameters used to produce the plots are returned.
Defaults to FALSE
.DETAILS
below.graph.pars = TRUE
a list with graphical parameters used to produce the plot is returned.
According to the input options, the list has
some or all of the
following components:cex
.col
.pch
.pt.divide
. The options are:
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object] For cases where points have different sizes the arguments
cex.min
and cex.max
set the minimum and the maximum
point sizes. Additionally,
pch.seq
can set different patterns for the points and
col.seq
can be used to define colors.
For example, different colors
can be used for quartiles, quintiles and deciles while a sequence of
gray tones (or a color sequence) can be used
for point sizes proportional to the data or their ranks.
For more details see the section EXAMPLES
.
The argument permute
if set to TRUE
randomly realocates the data in the coordinates.
This may be used to
contrast the spatial pattern of original data against another
situation where there is no spatial dependence (when setting
permute = TRUE
). If a trend
is provided the residuals
(and not the original data) are permuted.
plot.geodata
for another display of the data and
points
and plot
for information on the
generic Rfunctions. The documentation of
par
provides details on graphical parameters.
For color schemes in Rsee gray
and
rainbow
.data(s100)
op <- par(no.readonly = TRUE)
par(mfrow=c(2,2), mar=c(3,3,1,1), mgp = c(2,1,0))
points(s100, xlab="Coord X", ylab="Coord Y")
points(s100, xlab="Coord X", ylab="Coord Y", pt.divide="rank.prop")
points(s100, xlab="Coord X", ylab="Coord Y", cex.max=1.7,
col=gray(seq(1, 0.1, l=100)), pt.divide="equal")
points(s100, pt.divide="quintile", xlab="Coord X", ylab="Coord Y")
par(op)
data(ca20)
points(ca20, pt.div='quartile', x.leg=4900, y.leg=5850, bor=borders)
par(mfrow=c(1,2), mar=c(3,3,1,1), mgp = c(2,1,0))
points(s100, main="Original data")
points(s100, permute=TRUE, main="Permuting locations")
Run the code above in your browser using DataLab