[R] how to display a string containing greek chrs and variables

2009-11-03 Thread J . delasHeras
I'm trying something that I thought would be pretty simple, but it's proving quite frustrating... I want to display, for instance, the correlation coefficient rho in a graph. I can do something like: text(x, y, paste(rho =, cor)) where cor would be my previously calculated correlation

Re: [R] how to display a string containing greek chrs and variables

2009-11-03 Thread baptiste auguie
Hi, try this, plot.new() x=0.8 text(0.5, 0.5, bquote(rho == .(x))) HTH, baptiste 2009/11/3 j.delashe...@ed.ac.uk: I'm trying something that I thought would be pretty simple, but it's proving quite frustrating... I want to display, for instance, the correlation coefficient rho in a

Re: [R] how to display a string containing greek chrs and variables

2009-11-03 Thread J . delasHeras
Quoting baptiste auguie baptiste.aug...@googlemail.com: Hi, try this, plot.new() x=0.8 text(0.5, 0.5, bquote(rho == .(x))) HTH, baptiste Aha! That does exactly what i wanted! Thanks! Jose -- The University of Edinburgh is a charitable body, registered in Scotland, with registration

Re: [R] how to display a string containing greek chrs and variables

2009-11-03 Thread Peter Ehlers
j.delashe...@ed.ac.uk wrote: Quoting baptiste auguie baptiste.aug...@googlemail.com: Hi, try this, plot.new() x=0.8 text(0.5, 0.5, bquote(rho == .(x))) HTH, baptiste Aha! That does exactly what i wanted! Thanks! Jose But does it do what it should? It's customary to use rho for a

Re: [R] how to display a string containing greek chrs and variables

2009-11-03 Thread J . delasHeras
Quoting Peter Ehlers ehl...@ucalgary.ca: j.delashe...@ed.ac.uk wrote: Quoting baptiste auguie baptiste.aug...@googlemail.com: Hi, try this, plot.new() x=0.8 text(0.5, 0.5, bquote(rho == .(x))) HTH, baptiste Aha! That does exactly what i wanted! Thanks! Jose But does it do what it

Re: [R] how to display a string containing greek chrs and variables

2009-11-03 Thread Peter Ehlers
j.delashe...@ed.ac.uk wrote: Quoting Peter Ehlers ehl...@ucalgary.ca: j.delashe...@ed.ac.uk wrote: Quoting baptiste auguie baptiste.aug...@googlemail.com: Hi, try this, plot.new() x=0.8 text(0.5, 0.5, bquote(rho == .(x))) HTH, baptiste Aha! That does exactly what i wanted! Thanks!