[R] asterisk in subscript

2011-01-28 Thread Andrew Collier
hi, i am trying to label a plot axis with the equivalent of the latex $n_*$. i initially tried expression(paste(italic(n)[*])) but this made the * absolutely tiny and centred about midway wrt the n. then expression(paste(italic(n)[textstyle(*)])) made the * about the right size but now it

Re: [R] asterisk in subscript

2011-01-28 Thread Prof Brian Ripley
On Fri, 28 Jan 2011, Andrew Collier wrote: hi, i am trying to label a plot axis with the equivalent of the latex $n_*$. i initially tried expression(paste(italic(n)[*])) but this made the * absolutely tiny and centred about midway wrt the n. then expression(paste(italic(n)[textstyle(*)]))

Re: [R] asterisk in subscript

2011-01-28 Thread Andrew Collier
thanks for the rapid response. yes, in x11 your suggestion works perfectly. i have never thought of the asterisk as being a superscript... to me it has always been the mulitply sign which is centred. thanks for the education! however, my plot is being sent to postscript, which i guess does not

Re: [R] asterisk in subscript

2011-01-28 Thread Ted Harding
On 28-Jan-11 10:24:23, Andrew Collier wrote: thanks for the rapid response. yes, in x11 your suggestion works perfectly. i have never thought of the asterisk as being a superscript... to me it has always been the mulitply sign which is centred. thanks for the education! however, my plot

Re: [R] asterisk in subscript

2011-01-28 Thread Andrew Collier
magic! this does the trick: expression(paste(italic(n)[symbol(\052)])) thanks for the hint, ted! -- Andrew B. Collier Physicist Waves and Space Plasmas Group Hermanus Magnetic Observatory Honorary Senior Lecturer tel: +27 31 2601157 Space Physics Research