[R] Plotmath issue superscript "-"
Gavin Simpson
gavin.simpson at ucl.ac.uk
Fri Sep 21 13:40:29 CEST 2007
On Thu, 2007-09-20 at 18:19 +0200, Peter Dalgaard wrote:
> Gavin Simpson wrote:
> > Dear List,
> >
> > I'm trying to typeset some chemical ions in axis labels. These have both
> > super and subscript components, and for some, I need a superscript "-".
> > In LaTeX I might use $NO_3^-$ to do the typesetting, but I'm having a
> > problem getting the correct invocation for expression:
<snip />
> >
> It's an operator, it needs something to operate on.
>
> Try
>
> plot(0,main=quote(NO^-{}))
>
Thanks, Peter, for this solution, and also to Peter Ehlers and
ScionForbai for theirs.
All the best,
G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list