Re: [R] Plotmath issue superscript "-"

2007-09-21 Thread Gavin Simpson
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 typ

Re: [R] Plotmath issue superscript "-"

2007-09-20 Thread P Ehlers
Yes, sorry, I should have said that I was on Windows. In a UTF-8 locale, you could try \u2013 in place of \x96. The character is an endash. Peter Ehlers Scionforbai wrote: > Hallo, > >> If you need a subscript as well, I like >> >> plot(0, main=quote({NO^'\x96'}[3])) > > > I tried this but I

Re: [R] Plotmath issue superscript "-"

2007-09-20 Thread Scionforbai
Hallo, > If you need a subscript as well, I like > > plot(0, main=quote({NO^'\x96'}[3])) I tried this but I get: > plot(0, main=quote({NO^'\x96'}[3])) Errore in title(...) : stringa multibyte non valida ('invalid multibyte string') My R version is: platform i686-redhat-linux-gnu versi

Re: [R] Plotmath issue superscript "-"

2007-09-20 Thread P Ehlers
If you need a subscript as well, I like plot(0, main=quote({NO^'\x96'}[3])) Peter Ehlers 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 superscri

Re: [R] Plotmath issue superscript "-"

2007-09-20 Thread Peter Dalgaard
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 f

Re: [R] Plotmath issue superscript "-"

2007-09-20 Thread Scionforbai
Try: plot(0,0,"n") text(0,0,expression( {NO[3]}^'-')) __ R-help@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

[R] Plotmath issue superscript "-"

2007-09-20 Thread Gavin Simpson
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: > expression(NO^