Re: [R] PCA: Showing file datalabels on biplot

2010-01-25 Thread colin1
t$sample pca <- prcomp (t(catopsis)) plot(pca, catopsis []) summary(prcomp(catopsis)) biplot(prcomp(catopsis, scale = TRUE)) - Original Message - From: Kevin Wright-5 [via R] To: colin1 Sent: Monday, January 25, 2010 5:04 PM Subject: Re: [R] PCA: Showing file datalabels

Re: [R] PCA: Showing file datalabels on biplot

2010-01-25 Thread Kevin Wright
str(catopsis) shows no labels, so how can biplot know what to use? Try this before call prcomp: colnames(catopsis) <- c('a','b','c','d') rownames(catopsis) <- cat$sample Also, see the 'reshape' package for easier data manipulation. Kevin On Mon, Jan 25, 2010 at 10:39 AM, colin1 wrote: > > Th

[R] PCA: Showing file datalabels on biplot

2010-01-25 Thread colin1
The script below successfully produces a biplot of the data but the 'site names' (rows) and the names of the 'response variables' (columns) are shown as simple numerals (rather than the column and row names). How might I 'enforce' the use of the row/column names used in the datafile (section of da