[R] Help in the legend()

David Winsemius dwinsemius at comcast.net
Tue Jul 6 03:43:19 CEST 2010


On Jul 5, 2010, at 8:06 PM, Shant Ch wrote:

> Hi R-users,
>
> I was plotting the differences of the variances of the three  
> estimators- T^(1), T^(2), T^(3), ofcourse taking two at a time. I  
> was using the expression() in the legend function in order to show  
> which line correspond to which of the difference, but the following  
> that I had used didn't gave desired result. I would be grateful, if  
> you help me out.
>
> plot(n, pg, type="l",xlab="n",ylab="Differences of the  
> variances",ylim=c(-0.0012,0.0023), xlim=c(0,60));
> lines(gs,lty = 2)
> lines(ps,lty=5)
>
> legend(30, 0.0021, expression( c ( var(t^(3))-var(t^(2)), var(t^(2))- 
> var(t^(1))), var("t^(3))-var(t^(1)) ) ), lty=c(1,2,5))
>

Have you consider offering a toy set of objects which defines "t",  
"n", and "pg".

> Thanks.
> Shant
>
>
>
> 	[[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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list