I would like my axis label to read something like
(m²)
with the height of the parentheses a little larger to match the superscript 2, but the parentheses nonetheless inline.
However, I either get parentheses that are too small, via something like
parse(text='group("(",m^{2},")")')
which yields
or parentheses that are too big and out-of-line, via something like
parse(text='bgroup("(",m^{2},")")')
which yields
Can I not do this in R?
Update:
As per the suggestion of user @42-, I've also tried scriptstyle
. However, this makes the parenthesized text much smaller. It's particularly noticeable with neighboring text. For instance,
parse(text='Area~~(scriptstyle(m^{2}))')
would yield
I realize the workaround would be using something like
parse(text='scriptstyle(Area~~(m^{2}))')
which yields
and then manually upscaling font size to compensate, but is there a fix or alternative that won't require this kind of guesstimation?
parse(text='Area~~(scriptstyle(m^{2}))')
– Charactery