[R] expression(alpha) in legend()

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Jan 3 10:13:07 CET 2002


Uwe Ligges <ligges at statistik.uni-dortmund.de> writes:

> Tord Snall wrote:
> 
> > Dear all,
> > I try to plot include expression(alpha) in a legend():
..
> Try
> 
>    legend(110, 0.8 , c(
> 	expression(alpha == 0.001),
> 	expression(alpha == 0.01),
> 	expression(alpha == 0.05),
> 	expression(alpha == 0.1),
> 	expression(alpha == 0.5)
>    ), lty=1:5, lwd=3, col=1, merge=TRUE)

Um, you don't have to c() expressions like that:

plot(110, 0.8)
legend(110, 0.8, expression(alpha == 0.001, alpha == 0.01,
  alpha == 0.05, alpha == 0.1, alpha == 0.5), lty=1:5, lwd=3, col=1,
  merge=TRUE)

(but we seem to have a slight vertical alignment problem in X11?)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list