[R] add diagonal line to covariance matrix

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Oct 23 17:49:35 CEST 2010



On 22.10.2010 19:36, Marcelo Lima wrote:
> Hi,
>
> Created a covariance matrix and i would like to add a diagonal line to the
> plot, any suggestions?


I do not really understand your question. If you actually want to access 
the main diagonal of a matrix or add a diagonal matrix to another 
matrix, see ?diag

Uwe Ligges


> Thanks
>
>
>
>
> ______________________________________________
> 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