Learn R Programming

geozoning (version 1.0.0)

plotM: plotM

Description

plotM

Usage

plotM(map, Z = NULL, lab = NULL, byLab = TRUE, quantile = NULL,
  crit = NULL, cost = NULL, bestCrit = NULL, bestCost = NULL,
  newCost = NULL, line = 0, cex = 2)

Arguments

map

object returned by function genMap

Z

list of zones, each zone is a SpatialPolygons.

lab

label of each zones.

byLab

boolean, if TRUE display the label of each zone, else display the zone number.

quantile

probability vector used to generate "Z". This will be displayed in the title of the plot.

crit

criterion value corresponding to "Z. This will be displayed in the title of the plot.

cost

cost value corresponding to "Z". This will be displayed in the title of the plot.

bestCrit

best criterion value. This will be displayed in the title of the plot.

bestCost

best cost value. This will be displayed in the title of the plot.

newCost

new cost value. This will be displayed in the title of the plot.

line

position of the title. if negative, the title goes down, otherwise, goes up.

cex

text size

Value

an empty value

Details

plot the map in color with zones and details.

Examples

Run this code
# NOT RUN {
map=geozoning::mapTest
ZK=initialZoning(qProb=c(0.55,0.85),map)
Z=ZK$resZ$zonePolygone # list of zones
lab = ZK$resZ$lab # label of zones
plotM(map = map,Z = Z,lab = lab, byLab = FALSE)

# }

Run the code above in your browser using DataLab