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
In the devel branch, ggplot gives an error if the breaks on an axis go out of the plotting range.
dat <- data.frame(x=1:3, y=1:3)
# All breaks within range: OK
ggplot(dat, aes(x=x,y=y)) + geom_point() +
scale_y_continuous(breaks=1:3, labels=1:3)
# Breaks go out of range: not OK
ggplot(dat, aes(x=x,y=y)) + geom_point() +
scale_y_continuous(breaks=1:4, labels=1:4)
# Error in scale_labels.continuous(scale) :
# Breaks and labels are different lengths
This can cause problems in cases where you want tell it to make tick marks, say, every 10, without being super careful about the actual range shown in the graph. This happens especially when there are manually-specified labels to go with the breaks.
I believe the release version didn't have this issue.
The text was updated successfully, but these errors were encountered:
In the devel branch, ggplot gives an error if the breaks on an axis go out of the plotting range.
This can cause problems in cases where you want tell it to make tick marks, say, every 10, without being super careful about the actual range shown in the graph. This happens especially when there are manually-specified labels to go with the breaks.
I believe the release version didn't have this issue.
The text was updated successfully, but these errors were encountered: