[R] R: expression

From: Clark Allan <Allan_at_STATS.uct.ac.za>
Date: Tue 19 Jul 2005 - 21:35:26 EST


hi all

i am having a problem with the expression/paste command

say we estimate a variable, named PHI

it contains the value of say 2

and we want to display this value as " hat(phi) = PHI" onto a graphic

i.e. " hat(phi)=2 "

how does one do this?

i've tried the following:

  1. legend(-5,.3,expression(hat(phi)*"="*PHI))
  2. legend(-5,.3,paste(expression(phi),"=",PHI))

but they do not work.

any help?

/
allan



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 19 21:38:55 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:48 EST