powered by
Carry out a PCA on the centered, unscaled matrix of individual's allele frequencies.
indpca(dat,ind.labels=NULL,scale=FALSE)# S3 method for indpca print(x,...) # S3 method for indpca plot(x,eigen=FALSE,ax1=1,ax2=2,...)
# S3 method for indpca print(x,...) # S3 method for indpca plot(x,eigen=FALSE,ax1=1,ax2=2,...)
A data frame with population of origin as first column, and genotypes in following columns.
a vector of labels for the different individuals
whether to standardize each column to variance 1 or to leave it as is (default)
an indpca object
whether to plot in an additional windows screeplot of the inertias for the different axes
which PCA coordinates to plot on the x axis
which PCA coordinates to plot on the y axis
further arguments to pass to print or plot
An object of class indpca with components
indpca
The function call
an object of class pca and dudi (see dudi.pca) in package ade4
the original non centered matrice of individuals X alleles frequencies
# NOT RUN { ##not run data(gtrunchier) x<-indpca(gtrunchier[,-2],ind.labels=gtrunchier[,2]) plot(x,col=gtrunchier[,1],cex=0.7) # }
Run the code above in your browser using DataLab