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  TypeScript code snippet - How check is file exist linux?

Leave a Reply

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

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