Re: [R] Variables and greek letters in a plot title

2012-08-16 Thread John Kane
plot(rnorm(50), main=bquote(.(x)*" "* mu * g/m^3 * " substance")) John Kane Kingston ON Canada > -Original Message- > From: dominik.refa...@gmail.com > Sent: Thu, 16 Aug 2012 12:50:57 +0200 > To: jjon...@gmail.com > Subject: Re: [R] Variable

Re: [R] Variables and greek letters in a plot title

2012-08-16 Thread Dominik Refardt
Thanks a lot. Both plot(1:10) conc=5 title(main=bquote(.(conc)~mu*"g/ml substance")) and plot(0,0) conc <- 5 title(main=bquote(.(conc)*" "*mu*g/ml*" substance")) do exactly what I need. On Thu, Aug 16, 2012 at 1:33 PM, peter dalgaard wrote: > > On Aug 16, 2012, at 09:37 , Dominik Refardt wr

Re: [R] Variables and greek letters in a plot title

2012-08-16 Thread Dominik Refardt
Thanks a lot. However it's not completely what I want. There is space missing between the variable and the mu. Can this be added? On Thu, Aug 16, 2012 at 12:09 PM, Miguel Manese wrote: > Hi Dominik, > > You can try > > x <- 5 > plot(rnorm(50), main=bquote(.(x) * mu * g/m^3 * " substance")) > > R

Re: [R] Variables and greek letters in a plot title

2012-08-16 Thread peter dalgaard
On Aug 16, 2012, at 09:37 , Dominik Refardt wrote: > Hello > > This is a problem I encountered repeatedly and I found no answer that made > me really happy. I hope it is not too trivial. > > I would like to give the concentration of a substance in a plot title: > > 5 ug/ml substance > > the '

Re: [R] Variables and greek letters in a plot title

2012-08-16 Thread S Ellison
> I would like to give the concentration of a substance in a plot title: > > 5 ug/ml substance Examples of including a variable in text are given in the ?plotmath page, under " ## How to combine "math" and numeric variables". For your case, plot(1:10) conc=5 title(main=bquote(.(conc)~mu*"g/ml

Re: [R] Variables and greek letters in a plot title

2012-08-16 Thread Miguel Manese
Hi Dominik, You can try x <- 5 plot(rnorm(50), main=bquote(.(x) * mu * g/m^3 * " substance")) Regards, - Jon On Thu, Aug 16, 2012 at 3:37 PM, Dominik Refardt wrote: > Hello > > This is a problem I encountered repeatedly and I found no answer that made > me really happy. I hope it is not too t

[R] Variables and greek letters in a plot title

2012-08-16 Thread Dominik Refardt
Hello This is a problem I encountered repeatedly and I found no answer that made me really happy. I hope it is not too trivial. I would like to give the concentration of a substance in a plot title: 5 ug/ml substance the '5' would be a variable and the ug should be micrograms (with greek letter