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
Plot showing breaks and labels at 1:10 on the X axis.
Created with ggplot2 1.0.1, as I cannot reproduce with 2.1.0.
Actual results
Plot with no breaks or labels on the X axis (as if scale_x_discrete(labels = NULL, breaks = NULL) was added to the plot instead of the default waiver()).
Notes
Regression since ggplot2 1.0.1 (last major version I've been using)fb3931c.
Present in devtools and CRAN version as of 22 March 2016.
The text was updated successfully, but these errors were encountered:
This is an by design, as conversion from continuous to discrete data is not well-defined. It is easy to end up with thousands of breaks so it is up to the user to either provide the breaks explicitly or convert their data to a discrete format
Summary
Using
scale_[xy]_discrete()
, regardless of arguments, causes axis labels and breaks to disappear without warning.Example
Expected results
Plot showing breaks and labels at 1:10 on the X axis.
Created with ggplot2 1.0.1, as I cannot reproduce with 2.1.0.
Actual results
Plot with no breaks or labels on the X axis (as if
scale_x_discrete(labels = NULL, breaks = NULL)
was added to the plot instead of the defaultwaiver()
).Notes
1.0.1 (last major version I've been using)fb3931c.The text was updated successfully, but these errors were encountered: