【问题标题】:Choropleth maps with gray boundaries带有灰色边界的 Choropleth 地图
【发布时间】: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


    【解决方案1】:

    将第一行改为choropleth(mn_county, mn_county$smallbiz1998, shades, border = "gray")

    【讨论】:

      猜你喜欢
      • 2014-11-10
      • 2012-12-03
      • 1970-01-01
      • 1970-01-01
      • 2020-09-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-08
      相关资源
      最近更新 更多