I want include a variable in mtext as well as superscript some text:
My ideal output is
y.label ADC (10^-6 mm^2/s)
where y.label is the value of a variable, -6 is superscripted and 2 is superscripted
The most promising approach so far is:
mtext(expression(paste(y.label, " ADC (", 10^-6, " ", mm^2, "/s)")), side=2, line=2.5, cex=1.2, font=1)
This almost works but outputs "y.label" instead of the value of y.label
Grateful for any suggestions.