[R] LDA and centroids

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jun 2 18:35:24 CEST 2008


On Mon, 2 Jun 2008, Dani Valverde wrote:

> Hello,
> I have carried out an lda analysis using the lda function of MASS package. I 
> have plotted the LD1xLD2 to represent the data. Now I would like to get the 
> centroids for each group of data and plot it on the LD1xLD2 graph. How can I 
> get the centroid value from the lda object?

See the 'Value' section of the help page, and the examples in the book for 
which MASS is support software.

> Best,
>
> Dani
>
> -- 
> Daniel Valverde Saubí
>
> Grup de Biologia Molecular de Llevats
> Facultat de Veterinària de la Universitat Autònoma de Barcelona
> Edifici V, Campus UAB
> 08193 Cerdanyola del Vallès- SPAIN
>
> Centro de Investigación Biomédica en Red
> en Bioingeniería, Biomateriales y
> Nanomedicina (CIBER-BBN)
>
> Grup d'Aplicacions Biomèdiques de la RMN
> Facultat de Biociències
> Universitat Autònoma de Barcelona
> Edifici Cs, Campus UAB
> 08193 Cerdanyola del Vallès- SPAIN
> +34 93 5814126
>
> ______________________________________________
> 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.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-help mailing list