Check out example codes for "how to insert subscript in plots in r". It will help you in understanding the concepts better.

Code Example 1

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

expression("Global Irradiance (W/m"^"2"*")")

Learn ReactJs, React Native from akashmittal.com