私は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")
に変更してください)。