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
I was wondering if there is a way of parsing expressions to use as direct labels. For example, to use superscript, having test1^test2 as label would be plotted as test1test2. ggplot2geom_text has a parse option that if set to TRUE will parse expressions.
For example, ggrepel has the parse flag to use expressions, but you have to "hide" the unwanted labels and leave only one per group to be able to do the same as with a directlabel. If I have to do this for different plots, with different groups, it is almost impossible to always select the point with the most optimal label placement.
Hi @eggrandio that sounds like a useful feature, that is currently not supported by directlabels.
If you would like to implement it, I would consider a PR.
Hi,
I was wondering if there is a way of parsing expressions to use as direct labels. For example, to use superscript, having
test1^test2
as label would be plotted as test1test2.ggplot2
geom_text
has a parse option that if set to TRUE will parse expressions.For example,
ggrepel
has theparse
flag to use expressions, but you have to "hide" the unwanted labels and leave only one per group to be able to do the same as with a directlabel. If I have to do this for different plots, with different groups, it is almost impossible to always select the point with the most optimal label placement.See also this question in stackoverflow.
The text was updated successfully, but these errors were encountered: