Sub/superscript

Please can someone help? I want to subscript the '2' in 'NO2' in the main heading and the xlabel, and I want to add '(µg/m3)' (with a superscript '3') in the xlabel, but the way I did it before for histograms doesn't work. Any help would be gratefully received!
This is what I have so far:

ggdensity(bgbind$no2, 
          main = "Density plot of background NO2 concentrations",
          xlab = "NO2")

Try the new ggtext package.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.