I mean this question ( Automatic adjustment of fields in a horizontal histogram ). I would ask my question right there, but it seems that I do not have permission yet.
Imagine a horizontal diagram (for example, in a related question) where you can have extreme long lines, as we always have in the social sciences (for example, wording a question in the form of a poll like βI donβt feel competent enough to solve problems in Rβ )
Thelatemail user gave a decision on how to move the beginning of the graph depending on the length of the text labels. This works fine for labels with a length of 10 to 15 characters, but if you need to label your Y axis with very long labels, you cannot move the beginning of the graph endlessly.
Thus, it is more advisable to wrap text labels after a special number of words / characters, for example, in my example, you can wrap it as follows:
"I don't feel competent enough to solve problems in R"
However, I do not know how to wrap text labels in R and, moreover, how to take into account the wrapping to automatically move the beginning of the plot. For example, if I have a label of 50 characters, and I transfer it to two lines of 25 characters, then it would be great if this solution was taken into account when solving thelatemail .
I recommend any help in solving this problem! Thanks!
source share