how to plot population ancestry values as DAPC plots?

15 views
Skip to first unread message

genetist

unread,
Oct 28, 2023, 12:25:02 PM10/28/23
to poppr
Dear All
Good Evening
i have dataset (csV file) with Individuals and their Q values as columns. Now i would like to plot them as clusters like DAPC clusters. how to do this by importing ancestry values as dataframe. i need your help to plot these ancestry valus.
Thanking you very much.
Regards
Ancestry values.xlsx
dapc pic.jpg

Zhian Kamvar

unread,
Nov 11, 2023, 3:38:14 PM11/11/23
to genetist, poppr
I'm not sure how you are expecting to achieve this, but you can plot the Linear Discriminants by extracting them from the DAPC object and plotting them with ggplot2.

I have a (somewhat tortuous) example in a paper I wrote at the end of 2017: https://github.com/everhartlab/sclerotinia-366/blob/master/results/pop-diff.md. You can find the extraction of the DAPC data if you search for `LDS`

Hope that helps

--
You received this message because you are subscribed to the Google Groups "poppr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to poppr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/poppr/1b3d55c3-3b19-4ce2-a2c7-9d82a06142f4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages