Hi everybody, I'm trying, without success, to avoid some variables labels to overlap on a capscale (vegan package) object graph. I was able to move the labels with the coding below, but it moves the entire vector... CAPobj<-CAPpotiFT for(i in c(2:8))CAPobj$CCA[[i]][,1]<-CAPpotiFTI$CCA[[i]][,1] CAPpotiFTI$CCA[[i]][,1][2]<-0.85 And here the graphic script ScoresCAPFT<-scores(CAPpotiFTI) FatoresRep<-read.xls('Fatores.xls',sheet=1,rowNames=T) plot.cca(CAPpotiFTI,type='none',display=c('bp','sites'),main='Total Fauna - Sites vs. Environment') points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='1',],pch=21) points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='2',],pch=20) points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='3',],pch=21,bg='gray') points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='4',],pch=24) points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='5',],pch=24,bg='gray') points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='6',],pch=24,bg='black') text.cca(CAPpotiFTI,dis='cn',col='black',cex=0.6,lwd=0.5,lty='dotted') Well it's data manipulation, I won't use that... So... Any one knows how to move the labels, keeping the vectors position on a cca-like biplot? Thanks for your attention! ___________________________________ MSc. Rodrigo Aluizio Centro de Estudos do Mar/UFPR Laboratório de Micropaleontologia Avenida Beira Mar s/n - CEP 83255-000 Pontal do Paraná - PR - BRASIL [[alternative HTML version deleted]]
Sorry, just correcting the script!!! Hi everybody, I'm trying, without success, to avoid some variables labels to overlap on a capscale (vegan package) object graph. I was able to move the labels with the coding below, but it moves the entire vector... CAPobj<-CAPpotiFT for(i in c(2:8))CAPobj$CCA[[i]][,1]<-CAPobj$CCA[[i]][,1] CAPobj$CCA[[i]][,1][2]<-0.85 And here the graphic script ScoresCAPFT<-scores(CAPobj) FatoresRep<-read.xls('Fatores.xls',sheet=1,rowNames=T) plot.cca(CAPobj,type='none',display=c('bp','sites'),main='Total Fauna - Sites vs. Environment') points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='1',],pch=21) points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='2',],pch=20) points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='3',],pch=21,bg='gray') points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='4',],pch=24) points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='5',],pch=24,bg='gray') points(ScoresCAPFT$sites[FatoresRep$BiofaciesBC=='6',],pch=24,bg='black') text.cca(CAPpotiFTI,dis='cn',col='black',cex=0.6,lwd=0.5,lty='dotted') Well it's data manipulation, I won't use that... So... Any one knows how to move the labels, keeping the vectors position on a cca-like biplot? Thanks for your attention! ___________________________________ MSc. Rodrigo Aluizio Centro de Estudos do Mar/UFPR Laboratório de Micropaleontologia Avenida Beira Mar s/n - CEP 83255-000 Pontal do Paraná - PR - BRASIL [[alternative HTML version deleted]]
Dear Rodrigo The best thing to do is to label manually the points in the biplot. To do so you have to use the following comand:> text(location, "text to place")*location* can be an x,y coordinate. Alternatively, the text can be placed interactively via mouse by specifying location as *locator(1)*. See more detailed description at http://www.statmethods.net/advgraphs/axes.html. Alessandro Samuel-Rosa Post-Graduation Program in Soil Science Federal University of Santa Maria Av. Roraima, n? 1000, CEP 97105-970 Santa Maria, RS, Brazil -- View this message in context: http://r.789695.n4.nabble.com/Avoiding-Biplot-Labels-Overllaping-tp866744p3777639.html Sent from the R help mailing list archive at Nabble.com.