Re: [R] Legend names

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Sun, 09 Mar 2008 11:05:24 +0100

Joaquim J. S. Ramalho wrote:
> Hi,
>
> I need to use greek symbols in a legend. When I write:
>
> a <- 1
> leg.names <- as.expression(substitute(alpha==p,list(p=a)))
> legend("bottomright",legend=leg.names,lty=1)
>
> everything works fine. However, I want alpha=lambda=1. Therefore, I wrote:
>
> leg.names <- as.expression(substitute(alpha==lambda==p,list(p=a)))

You have to group parts of alpha==lambda==p (it would not be a valid S statement either!), e.g.:

alpha == {lambda == p}

Uwe Ligges

> but this does not work.
>
> Similarly, how can I write alpha=0, lambda=1?
>
> Thank you very much for your help.
>
> Joaquim Santos
>
> ______________________________________________
> 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.



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. Received on Sun 09 Mar 2008 - 10:08:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 09 Mar 2008 - 10:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive