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", weights.divide = NULL, cex.min,
cex.max, pch.seq, col.seq, add.to.plot = FALSE,
round.quantiles = FALSE, graph.pars = FALSE, ...)coords and
data described next. Typically an object of the class
"geodata" - a geoR data-set. If not provided the arguments
coords and data mustgeodata$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 degree polynomial
on the coordinates), "2nd" (a second degree polynomial
on the coordinates), 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 cpch.col.TRUE the points are added
to the current plot
otherwise a new plot is created. Defaults to FALSE.FALSE.TRUE the graphics
parameters used to produce the plots are returned.
Defaults to FALSE.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] 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.
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.if(is.R()) data(s100)
op <- par(no.readonly = TRUE)
par(mfrow=c(2,2))
par(mar=c(3,3,1,1))
par(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")
# the function gray() works only for R
points(s100, pt.divide="quintile", xlab="Coord X",
ylab="Coord Y")
par(op)Run the code above in your browser using DataLab