2016-10-27 9 views
0

私はRを使用しており、GISToolsを使用してchoroplethマップを作成しようとしています。私のコードは次のようである:灰色の境界線を持つ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")を試してみるとエラーになります。

(州間高速道路を灰色に変更した場合は、簡単に2行目をplot(us_interstate, add = TRUE, col = "gray")に変更してください)。

答えて

0

最初の行をchoropleth(mn_county, mn_county$smallbiz1998, shades, border = "gray")

に変更してください
関連する問題