How Do I Add a Colorbar to a Choropleth Map?

TheCedarPrince
Tue, 23 Mar 2021 18:31:40 +0000
General Usage

Hi all,

I have a choropleth plot that I have made using the following code snippet:

choropleth = plot(states.geometry, axis = ([], false); fillcolor = permutedims(random_values))

It comes out looking like this:

How do I add a colorbar to this graphic?

I saw this stack exchange post from a couple months ago so I see that it is still an open question: dataframe - How to add a colorbar to a thematic map plot in Julia? - Stack Overflow

Thanks all!

~ tcp

6 posts - 4 participants

Read full topic