On 11.01.2013 13:43, Monteiro, Jose wrote:> Dear Users,
>
> I have the following text plotted inside a graphic:
>
>
> text(16200, 2.8*0.97, expression(NH[3]==0.33-1.1 %*% 10^-5 %*% day),
>
> adj=c(1,1))
>
> I need to include square brackets in the expression around the ammonia to
have it plotted like that: [NO3-]. I tried instinctively to use %[% to plot the
brackets, but it did not work. Does anybody of you know what is the correct
syntax to plot square brackets inside an expression?
See ?plotmath:
plot(1, main=expression(group("[",
NO[3]^"-","]")))
Uwe Ligges
> Thank you in advance,
> Jos?
>
> [[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>