I have an R plot with the axis of the squared squared squares.
I can create the correct Angstrom character using Unicode, for example:
plot.new() text(x=0.5, y=0.8, labels="Interface area (\uc5)")

Both of my attempts to add a superscript result in errors:
plot.new() text(x=0.5, y=0.6, labels=expression("Interface area ("*\uc5^2*")")) # Error: unexpected input in "text(x=0.5, y=0.6, labels=expression("Interface area ("*\" plot.new() text(x=0.5, y=0.5, labels=expression("Interface area (\uc5"*^2*")")) # Error: unexpected '^' in "text(x=0.5, y=0.5, labels=expression("Interface area (\uc5"*^"
I am currently using a typographically incorrect hack:
plot.new() text(x=0.5, y=0.7, labels=expression("Interface area ("*ring(A)^2*")"))

(Note that the ring over A is too large)
Can I correct my expression () syntax to use unicode backslash and superscript characters?
Note. I looked at this question , but it concerns the direct use of the Unicode character, not the representation of the backslash.
r unicode
Lena
source share