✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Implement discretely_colour in plotly for R

Hi All,

I am looking to create a choropleth map where the color is based on a categorical variable.

In python plotly, the discrete_colour function described here https://plotly.com/python/choropleth-maps/ exactly meets my needs.

On this stack overflow thread (https://stackoverflow.com/questions/59516054/how-to-create-a-chloropleth-map-in-r-plotly-based-on-a-categorical-variable?newreg=d5aa2dc4ff834fc7bf92254f1ed3b9da) it is mentioned in the comments that non-continuous legends for choropleths would be coming early 2020, but it is not currently available and I cannot find any related issues or release notes.

Thanks a lot in advance.