Re: [R] Convert string for expression in plot

2008-01-29 Thread Uwe Ligges
Richard Longland wrote: > Thanks for the help. This substitute command might be what I'm after, > but, the whole string is being read in from a file. So I can't > explicitly write the thing out as you did in your example, as with your > example in R-news. > > My rules are: > Convert any ",g" or

Re: [R] Convert string for expression in plot

2008-01-29 Thread Richard Longland
Thanks for the help. This substitute command might be what I'm after, but, the whole string is being read in from a file. So I can't explicitly write the thing out as you did in your example, as with your example in R-news. My rules are: Convert any ",g" or "g," to ",gamma" or "gamma," (This com

Re: [R] Convert string for expression in plot

2008-01-29 Thread Uwe Ligges
Richard Longland wrote: > Hi, > > Although I understand how to use expression and paste to add > superscripts and symbols to my graphs, I have a problem with adding > superscripts to an existing string. > > For example, I read in the following from a separate file: > 25Mg(p,g) > > I want to co

[R] Convert string for expression in plot

2008-01-29 Thread Richard Longland
Hi, Although I understand how to use expression and paste to add superscripts and symbols to my graphs, I have a problem with adding superscripts to an existing string. For example, I read in the following from a separate file: 25Mg(p,g) I want to convert that to superscripts etc. (in LaTex form