[R] how to display a string containing greek chrs and variables
Peter Ehlers
ehlers at ucalgary.ca
Tue Nov 3 18:02:22 CET 2009
J.delasHeras at ed.ac.uk wrote:
> Quoting baptiste auguie <baptiste.auguie at 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 _population_ correlation coefficient. If your
(x,y) values represent a _sample_, then it would probably
be more appropriate to use the more mundane "r" or
perhaps "rho-hat".
>
--
Peter Ehlers
University of Calgary
More information about the R-help
mailing list