I can't find a way how to write subscripts in the title or the subtitle in R. How can I write v 1,2 with 1,2 as subscripts?
Thanks for your help!
I can't find a way how to write subscripts in the title or the subtitle in R. How can I write v 1,2 with 1,2 as subscripts?
Thanks for your help!
Another example, expression works for negative superscripts without the need for quotes around the negative number:
and you only need the * to separate sections as mentioned above (when you write a superscript or subscript and need to add more text to the expression after).
See ?expression
expression
is your friend:As other users have pointed out, we use
expression()
. I'd like to answer the original question which involves a comma in the subscript:Also, I'd like to add the reference for those looking to find the full
expression
syntax inR
plotting: For more information see the?plotmath
help page. Runningdemo(plotmath)
will showcase many expressions and relevant syntax.Remember to use
*
to join different types of text within an expression.Here is some of the sample output from
demo(plotmath)
:If you are looking to have multiple subscripts in one text then use the star(*) to separate the sections:
A subscript and referring to a stored value...