2

塗りつぶし単位ごとに個別のカラー スケールを持つマップを作成しようとしています。

コロプレスはブレイク数を8以下に制限しているようです。

地図上にプロットしようとしている 16 単位 (年) があり、異なる年をマージするのは不便です。

スタック オーバー フローの質問の例

library(choroplethr)
library(ggplot2)
data(df_pop_county)
df_pop_county$value<-sample(1:15,nrow(df_pop_county),replace=T) #create some random variable of only 15 units
choro = CountyChoropleth$new(df_pop_county)
choro$title = "2012 Population Estimates"
choro$ggplot_scale = scale_fill_brewer(name="Population", palette=2, drop=FALSE)
choro$render()
4

1 に答える 1

3

個別の場合、Choroplethr は 9 で最大になります。

library(choroplethr)
library(ggplot2)
data(df_pop_county)
df_pop_county$value<-sample(1:15,nrow(df_pop_county),replace=T) #create some random variable of only 15 units
choro = CountyChoropleth$new(df_pop_county)
choro$title = "2012 Population Estimates"
choro$set_num_colors(9)
choro$ggplot_scale = scale_fill_brewer(name="Population", palette=2, drop=FALSE)
choro$render()

2012 年の人口推計

于 2016-12-09T21:22:54.823 に答える