<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">The individual coordinates are in the @ind.coord slot of the DAPC object. You can use those to plot and color them with your desired population factor.</div><div class=""><br class=""></div><div class="">I have recently come up with a ggplot2 solution for this: <a href="https://github.com/everhartlab/sclerotinia-366/blame/v1.0/results/by-year.md#L508-L558" class="">https://github.com/everhartlab/sclerotinia-366/blame/v1.0/results/by-year.md#L508-L558</a>, the results of which look like so: <a href="https://github.com/everhartlab/sclerotinia-366/blob/v1.0/results/figures/by-year/dapc_plot-2.png" class="">https://github.com/everhartlab/sclerotinia-366/blob/v1.0/results/figures/by-year/dapc_plot-2.png</a></div><div class=""><br class=""></div><div class="">Hope that helps,</div><div class="">Zhian</div><div class=""><br class=""><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">-----</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Zhian N. Kamvar, Ph. D.</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Postdoctoral Researcher (Everhart Lab)</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Department of Plant Pathology</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">University of Nebraska-Lincoln</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">ORCID: 0000-0003-1458-7108</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Oct 13, 2017, at 03:39 , <a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org" class="">adegenet-forum-request@lists.r-forge.r-project.org</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Send adegenet-forum mailing list submissions to<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="mailto:adegenet-forum@lists.r-forge.r-project.org" class="">adegenet-forum@lists.r-forge.r-project.org</a><br class=""><br class="">To subscribe or unsubscribe via the World Wide Web, visit<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum<br class=""><br class="">or, via email, send a message with subject or body 'help' to<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>adegenet-forum-request@lists.r-forge.r-project.org<br class=""><br class="">You can reach the person managing the list at<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>adegenet-forum-owner@lists.r-forge.r-project.org<br class=""><br class="">When replying, please edit your Subject line so it is more specific<br class="">than "Re: Contents of adegenet-forum digest..."<br class=""><br class=""><br class="">Today's Topics:<br class=""><br class=""> 1. Re: Dots in the DAPC graphic (Lucas Veiga)<br class=""> 2. Re: Dots in the DAPC graphic (Lucas Veiga)<br class=""> 3. Re: Dots in the DAPC graphic (Roman Lu?trik)<br class=""><br class=""><br class="">----------------------------------------------------------------------<br class=""><br class="">Message: 1<br class="">Date: Thu, 12 Oct 2017 12:03:35 +0000 (UTC)<br class="">From: Lucas Veiga <lucasfip@yahoo.com.br><br class="">To: Roman Lu?trik <roman.lustrik@biolitika.si><br class="">Cc: "adegenet-forum@lists.r-forge.r-project.org"<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span><adegenet-forum@lists.r-forge.r-project.org><br class="">Subject: Re: [adegenet-forum] Dots in the DAPC graphic<br class="">Message-ID: <1994389766.433362.1507809815326@mail.yahoo.com><br class="">Content-Type: text/plain; charset="utf-8"<br class=""><br class="">Dear Roman,First, thank you for the help. Unfortunaly, apparently your command not worked for me. I will try explain better my situation. I work with phytopathology and the fungus that I work affects different crops (I have put in my input file .csv the crops as my populations, different crops are different populations). Due the migration of genotypes of the fungus between the crops, inside of one group formed by DAPC there are genotypes obtained of different crops (populations) and for better viewing of this migration I want to plot the dots according of the hosts and not according of the groups formed by DAPC analysis. So, inside of one group there will are dots of different colors.?I hope have explain better my situation and that you can help me.<br class="">Best regards,Lucas Veiga Ayres pimenta <br class=""><br class=""> Em Quinta-feira, 12 de Outubro de 2017 5:49, Roman Lu?trik <roman.lustrik@biolitika.si> escreveu:<br class=""><br class=""><br class=""> Map `grp` argument to your desired grouping. Make sure that you pass `col` the correct number of colors which should match the number of groups you are specifying.<br class="">By default, coloring is done on grouping (see here). See this example:<br class="">library(adegenet)<br class=""><br class="">data(H3N2)<br class="">pop(H3N2) <- factor(H3N2$other$epid)<br class="">dapc1 <- dapc(H3N2, var.contrib=FALSE, scale=FALSE, n.pca=150, n.da=5)<br class=""><br class="">data.frame(dapc1$grp, pop(H3N2)) # they are matching<br class=""><br class="">Cheers,Roman<br class=""><br class=""><br class="">----<br class="">In god we trust, all others bring data.<br class=""><blockquote type="cite" class="">Zahtevaj IJZ na https://kurc.biolitika.si<br class=""></blockquote>From: "Lucas Veiga" <lucasfip@yahoo.com.br><br class="">To: adegenet-forum@lists.r-forge.r-project.org<br class="">Sent: Thursday, October 12, 2017 1:34:19 AM<br class="">Subject: [adegenet-forum] Dots in the DAPC graphic<br class=""><br class="">Dear all,I would like to know what I can do for the dots in DAPC graph to be colored according to the populations and not according to the DAPC analysis groups?<br class=""><br class="">Best regards,<br class="">Lucas Veiga Ayres Pimenta<br class="">_______________________________________________<br class="">adegenet-forum mailing list<br class="">adegenet-forum@lists.r-forge.r-project.org<br class="">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum<br class=""><br class=""><br class=""><br class="">-------------- next part --------------<br class="">An HTML attachment was scrubbed...<br class="">URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20171012/c5b29746/attachment-0001.html><br class=""><br class="">------------------------------<br class=""><br class="">Message: 2<br class="">Date: Thu, 12 Oct 2017 12:10:28 +0000 (UTC)<br class="">From: Lucas Veiga <lucasfip@yahoo.com.br><br class="">To: Roman Lu?trik <roman.lustrik@biolitika.si><br class="">Cc: "adegenet-forum@lists.r-forge.r-project.org"<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span><adegenet-forum@lists.r-forge.r-project.org><br class="">Subject: Re: [adegenet-forum] Dots in the DAPC graphic<br class="">Message-ID: <342879047.415645.1507810228644@mail.yahoo.com><br class="">Content-Type: text/plain; charset="utf-8"<br class=""><br class="">Dear Roman,First, thank you for the help. Unfortunaly, apparently your command not worked for me. I will try explain better my situation. I work with phytopathology and the fungus that I work affects different crops (I have put in my input file .csv the crops as my populations, different crops are different populations). Due the migration of genotypes of the fungus between the crops, inside of one group formed by DAPC there are genotypes obtained of different crops (populations) and for better viewing of this migration I want to plot the dots according to the hosts and not according to the groups formed by DAPC analysis. So, inside of one group there will are dots of different colors.?I hope I have explained better my situation and that you can help me.<br class="">Best regards,Lucas Veiga Ayres pimenta <br class=""><br class=""> Em Quinta-feira, 12 de Outubro de 2017 9:03, Lucas Veiga <lucasfip@yahoo.com.br> escreveu:<br class=""><br class=""><br class=""> Dear Roman,First, thank you for the help. Unfortunaly, apparently your command not worked for me. I will try explain better my situation. I work with phytopathology and the fungus that I work affects different crops (I have put in my input file .csv the crops as my populations, different crops are different populations). Due the migration of genotypes of the fungus between the crops, inside of one group formed by DAPC there are genotypes obtained of different crops (populations) and for better viewing of this migration I want to plot the dots according of the hosts and not according of the groups formed by DAPC analysis. So, inside of one group there will are dots of different colors.?I hope have explain better my situation and that you can help me.<br class="">Best regards,Lucas Veiga Ayres pimenta <br class=""><br class=""> Em Quinta-feira, 12 de Outubro de 2017 5:49, Roman Lu?trik <roman.lustrik@biolitika.si> escreveu:<br class=""><br class=""><br class=""> Map `grp` argument to your desired grouping. Make sure that you pass `col` the correct number of colors which should match the number of groups you are specifying.<br class="">By default, coloring is done on grouping (see here). See this example:<br class="">library(adegenet)<br class=""><br class="">data(H3N2)<br class="">pop(H3N2) <- factor(H3N2$other$epid)<br class="">dapc1 <- dapc(H3N2, var.contrib=FALSE, scale=FALSE, n.pca=150, n.da=5)<br class=""><br class="">data.frame(dapc1$grp, pop(H3N2)) # they are matching<br class=""><br class="">Cheers,Roman<br class=""><br class=""><br class="">----<br class="">In god we trust, all others bring data.<br class=""><blockquote type="cite" class="">Zahtevaj IJZ na https://kurc.biolitika.si<br class=""></blockquote>From: "Lucas Veiga" <lucasfip@yahoo.com.br><br class="">To: adegenet-forum@lists.r-forge.r-project.org<br class="">Sent: Thursday, October 12, 2017 1:34:19 AM<br class="">Subject: [adegenet-forum] Dots in the DAPC graphic<br class=""><br class="">Dear all,I would like to know what I can do for the dots in DAPC graph to be colored according to the populations and not according to the DAPC analysis groups?<br class=""><br class="">Best regards,<br class="">Lucas Veiga Ayres Pimenta<br class="">_______________________________________________<br class="">adegenet-forum mailing list<br class="">adegenet-forum@lists.r-forge.r-project.org<br class="">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">-------------- next part --------------<br class="">An HTML attachment was scrubbed...<br class="">URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20171012/32d4d4d6/attachment-0001.html><br class=""><br class="">------------------------------<br class=""><br class="">Message: 3<br class="">Date: Fri, 13 Oct 2017 10:38:57 +0200 (CEST)<br class="">From: Roman Lu?trik <roman.lustrik@biolitika.si><br class="">To: Lucas Veiga <lucasfip@yahoo.com.br><br class="">Cc: adegenet-forum@lists.r-forge.r-project.org<br class="">Subject: Re: [adegenet-forum] Dots in the DAPC graphic<br class="">Message-ID:<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span><181441774.286421.1507883937636.JavaMail.zimbra@biolitika.si><br class="">Content-Type: text/plain; charset="utf-8"<br class=""><br class="">A-ha, I think I see where you're getting at. Right now I'm not sure it's possible to have DAPC groups with samples colored by some specific variable. Perhaps Thibaut will be able to chime in. If I'm right, this is something we could think about in the upcoming releases. <br class=""><br class="">In the mean time, you can construct your own plot, taking bits and pieces from https://github.com/thibautjombart/adegenet/blob/master/R/dapc.R#L539 <br class=""><br class=""><br class=""><br class="">Cheers, <br class="">Roman <br class=""><br class="">---- <br class="">In god we trust, all others bring data. <br class=""><blockquote type="cite" class="">Zahtevaj IJZ na https://kurc.biolitika.si <br class=""></blockquote><br class=""><br class="">From: "Lucas Veiga" <lucasfip@yahoo.com.br> <br class="">To: "Roman Lu?trik" <roman.lustrik@biolitika.si> <br class="">Cc: adegenet-forum@lists.r-forge.r-project.org <br class="">Sent: Thursday, October 12, 2017 2:03:35 PM <br class="">Subject: Re: [adegenet-forum] Dots in the DAPC graphic <br class=""><br class="">Dear Roman, <br class="">First, thank you for the help. Unfortunaly, apparently your command not worked for me. I will try explain better my situation. I work with phytopathology and the fungus that I work affects different crops (I have put in my input file .csv the crops as my populations, different crops are different populations). Due the migration of genotypes of the fungus between the crops, inside of one group formed by DAPC there are genotypes obtained of different crops (populations) and for better viewing of this migration I want to plot the dots according of the hosts and not according of the groups formed by DAPC analysis. So, inside of one group there will are dots of different colors. <br class="">I hope have explain better my situation and that you can help me. <br class=""><br class="">Best regards, <br class="">Lucas Veiga Ayres pimenta <br class=""><br class=""><br class="">Em Quinta-feira, 12 de Outubro de 2017 5:49, Roman Lu?trik <roman.lustrik@biolitika.si> escreveu: <br class=""><br class=""><br class="">Map `grp` argument to your desired grouping. Make sure that you pass `col` the correct number of colors which should match the number of groups you are specifying. <br class="">By default, coloring is done on grouping ( see here ). See this example: <br class=""><br class="">library(adegenet) <br class=""><br class="">data(H3N2) <br class="">pop(H3N2) <- factor(H3N2$other$epid) <br class="">dapc1 <- dapc(H3N2, var.contrib=FALSE, scale=FALSE, n.pca=150, n.da=5) <br class=""><br class="">data.frame(dapc1$grp, pop(H3N2)) # they are matching <br class=""><br class="">Cheers, <br class="">Roman <br class=""><br class=""><br class=""><br class="">---- <br class="">In god we trust, all others bring data. <br class=""><blockquote type="cite" class="">Zahtevaj IJZ na https://kurc.biolitika.si <br class=""></blockquote><br class=""><br class="">From: "Lucas Veiga" <lucasfip@yahoo.com.br> <br class="">To: adegenet-forum@lists.r-forge.r-project.org <br class="">Sent: Thursday, October 12, 2017 1:34:19 AM <br class="">Subject: [adegenet-forum] Dots in the DAPC graphic <br class=""><br class="">Dear all, <br class="">I would like to know what I can do for the dots in DAPC graph to be colored according to the populations and not according to the DAPC analysis groups? <br class=""><br class="">Best regards, <br class="">Lucas Veiga Ayres Pimenta <br class=""><br class="">_______________________________________________ <br class="">adegenet-forum mailing list <br class="">adegenet-forum@lists.r-forge.r-project.org <br class="">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum <br class=""><br class=""><br class=""><br class="">-------------- next part --------------<br class="">An HTML attachment was scrubbed...<br class="">URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20171013/aedaf8eb/attachment.html><br class=""><br class="">------------------------------<br class=""><br class="">_______________________________________________<br class="">adegenet-forum mailing list<br class="">adegenet-forum@lists.r-forge.r-project.org<br class="">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum<br class=""><br class="">End of adegenet-forum Digest, Vol 110, Issue 11<br class="">***********************************************<br class=""></div></div></blockquote></div><br class=""></div></body></html>