Re: [R] superscript characters in title with '+'

2010-10-26 Thread David Winsemius
On Oct 26, 2010, at 11:15 AM, Gavin Simpson wrote: On Fri, 2010-10-22 at 15:39 +0200, Claudia Beleites wrote: On 10/22/2010 03:15 PM, DrCJones wrote: Being a chemist, it seemed natural to me to put the i after the concentration brackets into a subscript - though you didn't say you want

Re: [R] superscript characters in title with '+'

2010-10-26 Thread Gavin Simpson
On Fri, 2010-10-22 at 15:39 +0200, Claudia Beleites wrote: > On 10/22/2010 03:15 PM, DrCJones wrote: > > Being a chemist, it seemed natural to me to put the i after the concentration > brackets into a subscript - though you didn't say you want that. > > A more "correct" expression would be: >

Re: [R] superscript characters in title with '+'

2010-10-22 Thread DrCJones
"Er, I don't see any italics in the output or implied by the expression. " Freudian slip... ...font superscripting is what I meant All is perfectly clear now. Thanks again! -- View this message in context: http://r.789695.n4.nabble.com/superscript-characters-in-title-with-tp300

Re: [R] superscript characters in title with '+'

2010-10-22 Thread Claudia Beleites
On 10/22/2010 03:15 PM, DrCJones wrote: Hi, Thanks for all of your replies! David, a slightly modified version of what you gave did the trick: hist(X,main = expression("["*Ca**""^paste(2,"+")*"]i"~'onsets')) here you put the 2+ into the superscript of a superscript. compare these four: hist(

Re: [R] superscript characters in title with '+'

2010-10-22 Thread David Winsemius
On Oct 22, 2010, at 9:15 AM, DrCJones wrote: Hi, Thanks for all of your replies! David, a slightly modified version of what you gave did the trick: hist(X,main = expression("["*Ca**""^paste(2,"+")*"]i"~'onsets')) But I prefer the way '2+' is italicized in the solution Dennis gave: I agree

Re: [R] superscript characters in title with '+'

2010-10-22 Thread DrCJones
Hi, Thanks for all of your replies! David, a slightly modified version of what you gave did the trick: hist(X,main = expression("["*Ca**""^paste(2,"+")*"]i"~'onsets')) But I prefer the way '2+' is italicized in the solution Dennis gave: hist(X, main = bquote('[Ca'^'2+'*']i'~'onsets'), xlab

Re: [R] superscript characters in title with '+'

2010-10-22 Thread Dennis Murphy
Hi: Try X <- rnorm(100) hist(X, main = bquote('[Ca'^'2+'*']i'~'onsets'), xlab = 'sec') or hist(X, main = bquote('[Ca*]'*i^'2+' ~'onsets'), xlab = 'sec') I'm not sure which one you want, though. HTH, Dennis On Fri, Oct 22, 2010 at 4:01 AM, DrCJones wrote: > > Hi, > > How can I get the '2+' int

Re: [R] superscript characters in title with '+'

2010-10-22 Thread David Winsemius
On Oct 22, 2010, at 7:01 AM, DrCJones wrote: Hi, How can I get the '2+' into superscript in the following title: '[Ca2+]i onsets' I tried the command below, but it doesn't work. What am I missing? The first is an unambiguous description of what you want, but here are some guesses (since