[R] Math expression in R plot

arun smartpink111 at yahoo.com
Fri Sep 21 17:19:50 CEST 2012


Hi,
Try this:
plot(0,0)
 title(expression(paste(plain("Estimator vs. "),eta,sep=" ")))
A.K.




----- Original Message -----
From: li li <hannah.hlx at gmail.com>
To: r-help <r-help at r-project.org>
Cc: 
Sent: Friday, September 21, 2012 11:04 AM
Subject: [R] Math expression in R plot

Dear all,
   In my R plot, I would like to add the title as "Estimator vs. Eta",
where I want to use the greek letter eta.
I was trying to use expression(plain("Estimator  vs.") *eta* ). It does not
seem to work.
Can anyone familiar with this give some help?

  Thank you very much.
       Hannah

    [[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.





More information about the R-help mailing list