Legend for NA values in lealfet maps

I have a series of NA values for which I need to add a legend in leaflet map, that associates these NA values to a specific text, for example. "<LC".

The option addLegend(na.label = "<LC") does not work because it leaves the colour associated to the NA values without text.


Thank you!

Works for other text, e.g. ">LC", but not with the symbol "<".


So, I used na.label = paste("<","LC"), and works:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.