My data includes FIPS code, County Name, and Population size. Using the choroplethr package, my current code is
county_choropleth(Countydata, legend = "Population",county_zoom =TennCounties)
Is there anyway to set the counties' border line colors in county_choropleth? Or any other alternative way?
Not sure if this question is still needed answered but I overlayed the county borders to my choropleth map by saving the choropleth to a DF then adding my county map.
I used:
name_of_choropleth_df + geom_polygon(data=df_counties,
aes(x=long, y=lat, group=group),
alpha=0, color="black", size=0.2)
My df_counties came from the US Census Bureau website and I modified it to only include specific counties. Alpha, color, and size can be whatever you want.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.