-
Notifications
You must be signed in to change notification settings - Fork 34
Description
I have plot recipes that try to plot the categorical values as colors in a geographic map. For example, the crop type in this plot: https://juliaearth.github.io/GeoStats.jl/stable/workflow.html#Plotting-solutions
I was doing some manual pre-processing by depending on CategoricalArrays.jl and converting to a vector of level codes manually. Given that the latest CategoricalArrays.jl support plot recipes already, I wanted to stop doing this manual fix. What is the appropriate method to pass categorical arrays to be interpreted as colors with an appropriate legend containing the levels?
I tried to pass the categorical array as marker_z -> array
but it didn´t work. Appreciate any help as this is the last issue I need to solve before releasing a new version of the project.