[R] strange behavior of plotmath

Rui Barradas ru|pb@rr@d@@ @end|ng |rom @@po@pt
Mon May 21 15:20:58 CEST 2018


Try

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

Hope this helps,

Rui Barradas

On 5/21/2018 1:09 PM, Jinsong Zhao wrote:
> 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]]
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list