[R] strange behavior of plotmath

Jinsong Zhao j@zh@o @ending from ye@h@net
Mon May 21 14:09:26 CEST 2018


hi there,

I find the following codes produce strange output.

plot(1:10, xlab = expression(NO[3]^-~(mg/L)))

you will notice that the unit, mg/L is in superscript format. 
That means that "~" is not for space. 
However, the help page of plotmath does not mention this behavior.

Best,
Jinsong
	[[alternative HTML version deleted]]



More information about the R-help mailing list