-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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
scale_y_continuous() 'sec.axis' and Warning min(x) max(x) #4368
Comments
Could you provide a minimal reprex? |
Sorry I though what I wrote would be enough to reproduce the issue.
Executing this chuck of code will produce the warning I describe (and it comes from sec_axis() as I provide only 1 single break and label to it). EDIT: Here is my sessionInfo() sessionInfo()
|
Thanks. It seems it came from Line 235 in 4555055
|
I don't understand the context of the line you quote. How should I use it in the reprex ? |
It was just a quick note about how to fix this issue. |
So contributors for ggplot2 will fix it ? (Sorry I am not so much used to issue process here). |
Yes, I wrote it just in case someone might get motivated to fix this. Feel free to contribute :) |
In a ggplot I am using a secondary Y-axis to display additionnal labels to my plot.
I use it like this :
in
sec_axis()
breaks and labels are queried in a data.tabledt.data
:The plot returned is fine : it totally matches my expectation.
But I don't understand why these warnings are printed.
So I basically have to questions:
sec_axis()
or elsewhere to get rid of these warnings ?I don't know if it is reproducible, but from what I experienced, if you give just a single value to
breaks
andlabels
insec_axis()
such has:sec.axis = sec_axis(trans = ~., breaks = 125, labels = "awesome single label")
This should trigger the warnings.
The text was updated successfully, but these errors were encountered: