data(newhaven)
# Single map
thematic.map(blocks, var.names="POP1990", horiz = FALSE, na.pos = "topleft",
scaleBar.pos = "bottomright", legend.pos = "bottomleft",
colorStyle = "red")
#Multiple maps and different colors
thematic.map(blocks, var.names=c("P_35_44","P_25_34", "POP1990"),
horiz =FALSE, na.pos = "topleft", scaleBar.pos = "bottomright",
legend.pos = "bottomleft",colorStyle =hcl.colors)
thematic.map(blocks, var.names=c("P_35_44","P_25_34", "POP1990"),
horiz =FALSE, na.pos = "topleft", scaleBar.pos = "bottomright",
legend.pos = "bottomleft", colorStyle =c("red", "blue", "na"))
# Use coordinate to define the legend
data(WHData)
thematic.map(whp_sp, var.names="Avg_Green_", colorStyle ="red",
na.pos = "topleft", scaleBar.pos = "bottomleft",
legend.pos = c(544000, 3380000),cuts=7,
cutter=rangeCuts)
thematic.map(WHHP, var.names=c("Avg_HP_avg", "Avg_Green_"), colorStyle =c("red", "blue"),
na.pos = "topleft", scaleBar.pos = "bottomleft",
legend.pos = c(544000, 3380000),cuts=7,
cutter=rangeCuts)
Run the code above in your browser using DataLab