Here is my problem: for a plot label, I need to have a letter in square brackets ([M]) and a subscript right next to it. The normal way of making a subscript with expression function doesn't work:
expression(paste("[M]",[P]))
returns an error - apparently it wants to have something in front of the subscript, because this way -
expression(M[P])
it works.
Does anybody know how to overcome this? Thanks in advance!
You can use
expression("[M]"[P])
An example:
plot(1, main = expression("[M]"[P]))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With