
Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'Map':
plot(x, recs, auxvar = NULL, add = FALSE, fg = "gray", ol = "black",
prbg = NULL, glyph = 16, color='red', type = "q", nclass = 5, \dots)
auxvar
variable is not used, the function returns NULL, otherwise it returns the list constructed by maptools:::color.ramp()
with components:read.shape
, readShapePoly
, readShapeLines
, readShapePoints
, getinfo.shape
x <- read.shape(system.file("shapes/sids.shp", package="maptools")[1])
plot(x)
nParts <- sapply(x$Shapes, function(x) attr(x, "nPart"))
table(nParts)
cols <- c("azure", "blue", "orange")
fgs <- cols[nParts]
plot(x, fg=fgs)
res <- plot(x, auxvar=x$att.data$BIR74)
str(res)
res <- plot(x, auxvar=x$att.data$BIR74, type="e")
str(res)
Run the code above in your browser using DataLab