To use this option and update it correctly, we can work with it as an R6 object as follows:
library(choroplethr) library(choroplethrMaps) library(ggplot2) data(df_pop_county) 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()

Using the specific pallet you mentioned:
choro = CountyChoropleth$new(df_pop_county) choro$title = "2012 Population Estimates" choro$ggplot_scale = scale_fill_brewer(name="Population", palette="YlOrRd", drop=FALSE) choro$render()

source share