[adegenet-forum] Compoplot as table

Jombart, Thibaut t.jombart at imperial.ac.uk
Tue Jun 23 15:16:36 CEST 2015


Hi,

yes, the function 'predict' does what you want:

data(H3N2)
pop(H3N2) <- factor(H3N2$other$epid)
dapc1 <- dapc(H3N2, var.contrib=FALSE, scale=FALSE, n.pca=150, n.da=5)
predict(dapc1)


Cheers
Thibaut

==============================
Dr Thibaut Jombart
MRC Centre for Outbreak Analysis and Modelling
Department of Infectious Disease Epidemiology
Imperial College - School of Public Health
Norfolk Place, London W2 1PG, UK
Tel. : 0044 (0)20 7594 3658
http://sites.google.com/site/thibautjombart/
http://sites.google.com/site/therepiproject/
http://adegenet.r-forge.r-project.org/
Twitter: @thibautjombart


________________________________
From: adegenet-forum-bounces at lists.r-forge.r-project.org [adegenet-forum-bounces at lists.r-forge.r-project.org] on behalf of Spencer Bruce [goatsrunfaster at gmail.com]
Sent: 23 June 2015 14:08
To: adegenet-forum at lists.r-forge.r-project.org
Subject: [adegenet-forum] Compoplot as table

Hello All,

I'm simply looking to get an output using the compoplot function but in the form of a table with Q values similar to what is produced by STRUCTURE (as opposed to the visual output). Does anybody have some simple code that will produce this?

Thanks in advance!

Best!
-Spencer

--
Spencer A Bruce
113 Hill St.
Troy, NY 12180
518 225 0787
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20150623/ce80e7dc/attachment.html>


More information about the adegenet-forum mailing list