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
When text goes outside of the plot area, usually the plot is less readable. It would help to have a warning when text goes outside of the plot area. In the example below, the x-axis labels appear to start at "b" and end at "I" because the text is cut off. It would help find unreadable figures if this resulted in a warning-- especially with automated reporting (like in knitr documents).
If implemented, a theme option to suppress the warning would be useful, too. It could be something like theme(warn.outside=TRUE), and it may have variants for warn.outside.axis.text, warn.outside.axis.text.x, warn.outside.axis.text.y, warn.outside.axis.title, warn.outside.axis.title.x, warn.outside.axis.title.y, warn.outside.title, warn.outside.subtitle, warn.outside.caption, and warn.outside.legend.
ggrepel would redraw if you resize the figure so this is possible for text that is part of the plot.
For axis labels why it is not possible ?
I would imagine several ways to avoid overlap:
Rotation
Having alternate vertical height ( first tick label go on an imaginary line 1, second tick label imaginary line 2 which is below line1 in a way that we have no overlap ( this was possible in splus back in time) it is like inserting line breaks with control of lineheight
It is certainly possible - also for an extension package. As said in the other issue, some of this is already being considered for ggplot2 proper and others can step up and implement the rest as extension
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
lockbot
locked and limited conversation to collaborators
Dec 15, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Related to #3281 (but not the same).
When text goes outside of the plot area, usually the plot is less readable. It would help to have a warning when text goes outside of the plot area. In the example below, the x-axis labels appear to start at "b" and end at "I" because the text is cut off. It would help find unreadable figures if this resulted in a warning-- especially with automated reporting (like in knitr documents).
If implemented, a theme option to suppress the warning would be useful, too. It could be something like
theme(warn.outside=TRUE)
, and it may have variants forwarn.outside.axis.text
,warn.outside.axis.text.x
,warn.outside.axis.text.y
,warn.outside.axis.title
,warn.outside.axis.title.x
,warn.outside.axis.title.y
,warn.outside.title
,warn.outside.subtitle
,warn.outside.caption
, andwarn.outside.legend
.Created on 2019-04-30 by the reprex package (v0.2.0).
The text was updated successfully, but these errors were encountered: