You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to bin my colors using a log10 transformation, and it seems that if the number 0.01 is included in the data, the scaling breaks with a warning:
Warning message:
In self$trans$transform(limits) : NaNs produced
This causes the transformation to happen, but the legend doesn't show up.
I can speculate on why this is happening, but I'm unclear if there's an easy way to eliminate this problem.
One fix is to use "log1p" instead of "log10". It took awhile for me to pinpoint the issue and discover the solution. Even if a fix for 0.01 can't be included, it would be helpful to add some language in the binned_scale (or scale_*_steps) documentation.
The text was updated successfully, but these errors were encountered:
I would like to bin my colors using a log10 transformation, and it seems that if the number 0.01 is included in the data, the scaling breaks with a warning:
This causes the transformation to happen, but the legend doesn't show up.
Here is an example of what doesn't work:
Here are 3 examples that do work, which makes me suspect it is a bug:
I can speculate on why this is happening, but I'm unclear if there's an easy way to eliminate this problem.
One fix is to use "log1p" instead of "log10". It took awhile for me to pinpoint the issue and discover the solution. Even if a fix for 0.01 can't be included, it would be helpful to add some language in the binned_scale (or scale_*_steps) documentation.
The text was updated successfully, but these errors were encountered: