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  CSS code snippet - How to remove default padding of div?

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.