【发布时间】:2017-03-10 07:00:20
【问题描述】:
我正在使用 R 并尝试使用 GISTools 创建等值线图。我的代码是这样的:
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"))。
【问题讨论】:
标签: r choropleth