R 的“绘图(区域)”命令没有打印出任何标题——我该如何纠正这个问题?“main”命令在下面的任何“plot”行中都不起作用。
library(OpenStreetMap)
library(rJava)
library(rgdal)
library(UScensus2000)
data(louisiana.tract)
m65 = na.omit(louisiana.tract@data$age.65.up)
a65 = cut(m65,breaks=c(min(m65),500,750,1000,3500))
levels(a65) = c("0-500","501-750","751-1000",">1000")
la <- spTransform(louisiana.tract,osm())
lat <- c(30.4, 29.5)
lon <- c(-90.7, -89.5)
region <- openmap(c(lat[1],lon[1]),c(lat[2],lon[2]),zoom=10,'osm')
windows()
plot(region, main = "New Orleans area: \n residents 65 and over by ZIP")
plot(la,add=TRUE,col=c("light cyan","light blue", "cyan" ,"dodgerblue"))
legend(locator(1), cex=.8, levels(a65), fill=c("light cyan","light blue", "cyan" ,"dodgerblue") )