Skip to content

TypeScript code snippet – How to insert subscript in plots in r?

plot(1,1, main=expression('title'^2))  #superscript
plot(1,1, main=expression('title'[2])) #subscript

expression("Global Irradiance (W/m"^"2"*")")
See also  How ro have a incresing variable in Python?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.