[R] how to display a string containing greek chrs and variables
Peter Ehlers
ehlers at ucalgary.ca
Tue Nov 3 19:58:47 CET 2009
J.delasHeras at ed.ac.uk wrote:
> Quoting Peter Ehlers <ehlers at ucalgary.ca>:
>
>> 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".
>
>
> I'm talking rank correlation, Spearman's rho.
>
> Jose
>
Rank correlation or not, it's still customary to use "r"
or "r[s]" for samples and rho or rho[s] for populations.
But it's up to you, of course.
--
Peter Ehlers
University of Calgary
More information about the R-help
mailing list