We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following the example in #25 where viridisLite::inferno is used in the colorOptions, what is the best way to add a legend with that palette?
I've tried:
pal <- colorNumeric(viridisLite::inferno, domain = values(myraster), na.color = "transparent") addLegend(pal = pal, values = values(myraster))
as well as
addLegend(pal = viridisLite::inferno, values = values(myraster))
And neither work.
The text was updated successfully, but these errors were encountered:
Hi, I think you need to explicitly set how many colors you want to generate. This works for me:
pal = colorNumeric( viridisLite::inferno(256) , domain = tst[[1]] , na.color = "transparent" )
Sorry, something went wrong.
Works for me too! Thanks.
No branches or pull requests
Following the example in #25 where viridisLite::inferno is used in the colorOptions, what is the best way to add a legend with that palette?
I've tried:
as well as
And neither work.
The text was updated successfully, but these errors were encountered: