我正在使用R,并尝试使用GISTools创建一个choropleth地图。我的代码如下:
choropleth(us_state, us_state$smallbiz1998, shades)
plot(us_interstate, add = TRUE)us_state是美国各州的地图,us_interstate是州际高速公路的地图。
我希望美国各州的边界是灰色的。我该怎么做呢?
choropleth文档表明您可以指定Additional parameters to be passed on to the plot method for sp.。然而,当我尝试choropleth(us_state, us_state$smallbiz1998, shades, col = "gray")时,它抛出了一个错误。
(如果要将州际高速公路更改为灰色,只需将第二行更改为plot(us_interstate, add = TRUE, col = "gray")即可)。
发布于 2016-10-27 22:45:04
将第一行更改为choropleth(mn_county, mn_county$smallbiz1998, shades, border = "gray")
https://stackoverflow.com/questions/40287218
复制相似问题