# Help me with Julia/R comparison project, how to plot US county maps in Plots/StatsPlots (or what's best alternative)?

**URL:** <https://discourse.julialang.org/t/help-me-with-julia-r-comparison-project-how-to-plot-us-county-maps-in-plots-statsplots-or-whats-best-alternative/75686>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [February 2, 2022, 9:30pm UTC](https://discourse.julialang.org/t/help-me-with-julia-r-comparison-project-how-to-plot-us-county-maps-in-plots-statsplots-or-whats-best-alternative/75686 "2022-02-02T21:30:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![danielw2904](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielw2904/32/10890_2.png) [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Post date:** [February 2, 2022, 10:04pm UTC](https://discourse.julialang.org/t/help-me-with-julia-r-comparison-project-how-to-plot-us-county-maps-in-plots-statsplots-or-whats-best-alternative/75686/4 "2022-02-02T22:04:01Z")

</div>

Maybe this is helpful

> [@U.S. Counties Choropleth](https://discourse.julialang.org/t/u-s-counties-choropleth/20845/27):
>
> I know it’s been a while since this question was posted, but it took me a while to plot a choropleth from a DataFrame so I’ll post the way I do it by using Shapefile.jl and Plots.jl I hope this could help someone out there. The resulting map without working so much on the aesthetics is the following: using Plots using Shapefile using DataFrames using Colors #building a custom categorical colorbar colorbar = cgrad(["#FFFFFF", "#ffffcc", "#a1dab4", "#41b6c4", "#253494"], categorical =…

[https://www.queryverse.org/VegaLite.jl/stable/examples/examples\_maps/](https://www.queryverse.org/VegaLite.jl/stable/examples/examples_maps/)

---

_[View the full topic](https://discourse.julialang.org/t/help-me-with-julia-r-comparison-project-how-to-plot-us-county-maps-in-plots-statsplots-or-whats-best-alternative/75686)._
