R latex2exp switch back to non-subscript

Trying out the R latex2exp package and having trouble with syntax. Trying to create a label with the text Z(u + subscripted alpha symbol then ). Can’t work out how to get the subscript for the alpha to discontinue do the closing bracket is not subscripted.

Example R code

require(latex2exp)
plot(1,2)
text(1,2,TeX('Z(u$_\\alpha$)'),cex = 4)

Leave a Reply

Your email address will not be published. Required fields are marked *