jeffrey jeffrey - 1 year ago 106
R Question

Subscripts in plots in R

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!

smu smu
Answer Source

expression is your friend:

plot(1,1, main=expression('title'^2))
plot(1,1, main=expression('title'[2]))
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download