s.Spatial | R Documentation |
This function represents a background map linked with data or not.
s.Spatial(spObj, col = TRUE, nclass = 5, scale = TRUE, plot = TRUE,
storeData = TRUE, pos = -1, ...)
spObj |
an object deriving from class |
col |
a logical or a color to fill the background color of |
nclass |
if |
scale |
a |
plot |
a logical indicating if the graphics is displayed |
storeData |
a logical indicating if the data should be stored in
the returned object. If |
pos |
an integer indicating the position of the
environment where the data are stored, relative to the environment
where the function is called. Useful only if |
... |
additional graphical parameters (see
|
An object of class ADEg
(subclass S2.label
) or ADEgS
(if spObj
contains more than one column ).
The result is displayed if plot
is TRUE
.
Alice Julien-Laferriere, Aurelie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Stephane Dray
S2.label
spplot
sp.lines
sp.polygons
sp.grid
data(elec88, package = "ade4")
## mapping without data
g1 <- s.Spatial(elec88$Spatial)
## Not run:
if(require(sp, quietly = TRUE)) {
## mapping with data
obj <- SpatialPolygonsDataFrame(Sr = elec88$Spatial, data = elec88$tab)
g2 <- s.Spatial(obj)
g3 <- s.Spatial(obj, nclass = 2, col = c("red", "blue"))
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.