Hi all I have produced a biplot for a PCA (see attached pdf) that I ran however the names of the variables which are placed at the end of the arrows overlap and are thus unreadable. Similarly some of the numbered points overlap. I was wondering if there was a way to edit the biplot to move the label names and if not what the best alternative is. Thanks Anna pca<-biodata[,3:10] model<-prcomp(pca,scale=TRUE) summary(model) biplot(model) -- Dr Anna R. Renwick Research Ecologist British Trust for Ornithology, The Nunnery, Thetford, Norfolk, IP24 2PU, UK Tel: +44 (0)1842 750050; Fax: +44 (0)1842 750030 -------------- next part -------------- A non-text attachment was scrubbed... Name: PCA.pdf Type: application/pdf Size: 6580 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110513/731e9fd4/attachment.pdf>
Have you looked into the options for par?, which it looks like can be included in your call to biplot, perhaps adj or something else to reduce overlap. Scott On Friday, May 13, 2011 at 4:38 AM, Anna Renwick wrote:> Hi all > > I have produced a biplot for a PCA (see attached pdf) that I ran however the > names of the variables which are placed at the end of the arrows overlap and > are thus unreadable. Similarly some of the numbered points overlap. I was > wondering if there was a way to edit the biplot to move the label names and > if not what the best alternative is. > > Thanks > Anna > > pca<-biodata[,3:10] > model<-prcomp(pca,scale=TRUE) > summary(model) > biplot(model) > > > -- > Dr Anna R. Renwick > Research Ecologist > British Trust for Ornithology, > The Nunnery, > Thetford, > Norfolk, > IP24 2PU, > UK > Tel: +44 (0)1842 750050; Fax: +44 (0)1842 750030 > ______________________________________________ > R-help@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. > > Attachments: > - PCA.pdf > >[[alternative HTML version deleted]]
Did you try tweaking the value of the "expand" parameter? See the help page of biplot for more info. Kevin On Fri, May 13, 2011 at 4:38 AM, Anna Renwick <anna.renwick@bto.org> wrote:> Hi all > > I have produced a biplot for a PCA (see attached pdf) that I ran however > the > names of the variables which are placed at the end of the arrows overlap > and > are thus unreadable. Similarly some of the numbered points overlap. I was > wondering if there was a way to edit the biplot to move the label names and > if not what the best alternative is. > > Thanks > Anna > > pca<-biodata[,3:10] > model<-prcomp(pca,scale=TRUE) > summary(model) > biplot(model) > > > -- > Dr Anna R. Renwick > Research Ecologist > British Trust for Ornithology, > The Nunnery, > Thetford, > Norfolk, > IP24 2PU, > UK > Tel: +44 (0)1842 750050; Fax: +44 (0)1842 750030 > > ______________________________________________ > R-help@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. > >[[alternative HTML version deleted]]