grid package).plotGrob(grobToPlot, col = NULL, real = FALSE, size = unit(5, "points"),
minv, maxv, legend = TRUE, legendText = NULL, length = NULL,
gp = gpar(), gpText = gpar(), pch = 19, speedup = 1, ...)## S3 method for class 'matrix':
.plotGrob(grobToPlot, col = NULL, real = FALSE,
size = unit(5, "points"), minv, maxv, legend = TRUE, legendText = NULL,
length = NULL, gp = gpar(), gpText = gpar(), pch = 19, speedup = 1,
...)
## S3 method for class 'SpatialPoints':
.plotGrob(grobToPlot, col = NULL, real = FALSE,
size = unit(5, "points"), minv, maxv, legend = TRUE, legendText = NULL,
length = NULL, gp = gpar(), gpText = gpar(), pch = 19, speedup = 1,
...)
## S3 method for class 'SpatialPolygons':
.plotGrob(grobToPlot, col = NULL, real = FALSE,
size = unit(5, "points"), minv, maxv, legend = TRUE, legendText = NULL,
length = NULL, gp = gpar(), gpText = gpar(), pch = 19, speedup = 1,
...)
## S3 method for class 'SpatialLines':
.plotGrob(grobToPlot, col = NULL, real = FALSE,
size = unit(5, "points"), minv, maxv, legend = TRUE, legendText = NULL,
length = NULL, gp = gpar(), gpText = gpar(), pch = 19, speedup = 1,
...)
Raster*, SpatialLines*,
SpatialPoints*, or SpatialPolygons* object.Raster* object.real numbers
(i.e., as opposed to integer or factor).SpatialPoints.Raster*. Required because not
all Rasters have this defined internally.Raster*. Required because not
all Rasters have this defined internally.TRUE.NULL which results in a pretty numeric
representation. If Raster* has a Raster Attribute
Table (rat; see raster package), this will be used
by default. Curgrid parameters, usually the output of a call to
gpar.gpar object for legend label text.SpatialPoints, as par.SpatialPolygons and SpatialLines* will be
subsampled. The vertices are already subsampled by default to
make plotting faster.speedup is only used for SpatialPolygons, SpatialPoints,
and SpatialLines in this function.
Attempts have been made to subsample at a good level that optimizes speed of
plotting, without losing visible quality. Nevertheless, to force all points to
be plotted, use a speedup value less than 0.1.
From a speed perspective, there appears to be an optimal subsampling when
using thin from the fastshp package.
Presumably, too much thinning requires large distance matrices to be
calculated, slowing plotting down.
Too little thinning causes an overabundance of points to be plotted, slowing
plotting down.The suggested package fastshp can be installed with:
install.packages("fastshp", repos = "http://rforge.net", type = "source").
NOTE: you may get errors relating to not having installed the software tools
required for building R packages on your system.
For building on Windows, you'll need to install Rtools from