<html><head></head><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:13px"><div id="yiv6742581860"><div id="yui_3_16_0_ym19_1_1507751279292_50769"><div style="background-color: rgb(255, 255, 255);" id="yui_3_16_0_ym19_1_1507751279292_50768"><div id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_47593" style=""><div style="" id="yui_3_16_0_ym19_1_1507751279292_50840">Dear Roman,</div><div style="" id="yui_3_16_0_ym19_1_1507751279292_50841">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. </div><div style="" id="yui_3_16_0_ym19_1_1507751279292_50842">I hope I have explained better my situation and that you can help me.</div><div style="" id="yui_3_16_0_ym19_1_1507751279292_50843"><br id="yui_3_16_0_ym19_1_1507751279292_50844"></div><div style="" id="yui_3_16_0_ym19_1_1507751279292_50845">Best regards,</div><div style="" dir="ltr" id="yui_3_16_0_ym19_1_1507751279292_50846">Lucas Veiga Ayres pimenta</div></div> <div class="yiv6742581860qtdSeparateBR" id="yui_3_16_0_ym19_1_1507751279292_50784" style="color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 13px;"><br clear="none"><br clear="none"></div><div class="yiv6742581860yqt9564663437" id="yiv6742581860yqt80370" style="color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 13px;"></div></div></div></div><div class=".yiv6742581860yahoo_quoted"> <div style="font-family:times new roman, new york, times, serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"><font size="2" face="Arial"> Em Quinta-feira, 12 de Outubro de 2017 9:03, Lucas Veiga <lucasfip@yahoo.com.br> escreveu:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv6742581860y_msg_container"><div id="yiv6742581860"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:13px;"><div id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_42237">Dear Roman,</div><div id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_42238">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. </div><div id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_42239">I hope have explain better my situation and that you can help me.</div><div id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_42240"><br clear="none" id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_42241"></div><div id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_42242">Best regards,</div><div id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_42214"></div><div dir="ltr" id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_42243">Lucas Veiga Ayres pimenta</div> <div class="yiv6742581860qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv6742581860yqt4748935064" id="yiv6742581860yqt04263"><div class="yiv6742581860yahoo_quoted" style="display:block;"> <div style="font-family:times new roman, new york, times, serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"><font size="2" face="Arial"> Em Quinta-feira, 12 de Outubro de 2017 5:49, Roman Luštrik <roman.lustrik@biolitika.si> escreveu:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv6742581860y_msg_container"><div id="yiv6742581860"><div><div style="font-family:trebuchet ms, sans-serif;font-size:12pt;color:#000000;"><div>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 clear="none"></div><div>By default, coloring is done on grouping (<a rel="nofollow" shape="rect" target="_blank" href="https://github.com/thibautjombart/adegenet/blob/master/R/dapc.R#L498">see here</a>). See this example:</div><div><br clear="none"></div><div>library(adegenet)<br clear="none"><br clear="none">data(H3N2)<br clear="none">pop(H3N2) <- factor(H3N2$other$epid)<br clear="none">dapc1 <- dapc(H3N2, var.contrib=FALSE, scale=FALSE, n.pca=150, n.da=5)<br clear="none"><br clear="none">data.frame(dapc1$grp, pop(H3N2)) # they are matching<br clear="none"></div><div><br clear="none"></div><div>Cheers,</div><div>Roman</div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div class="yiv6742581860yqt6186981918" id="yiv6742581860yqt03427"><div>----<br clear="none">In god we trust, all others bring data.<br clear="none">> Zahtevaj IJZ na https://kurc.biolitika.si</div><br clear="none"><hr id="yiv6742581860zwchr"><div><b>From: </b>"Lucas Veiga" <lucasfip@yahoo.com.br><br clear="none"><b>To: </b>adegenet-forum@lists.r-forge.r-project.org<br clear="none"><b>Sent: </b>Thursday, October 12, 2017 1:34:19 AM<br clear="none"><b>Subject: </b>[adegenet-forum] Dots in the DAPC graphic<br clear="none"></div><br clear="none"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:13px;"><div id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_16011">Dear all,</div><div dir="ltr" id="yiv6742581860yui_3_16_0_ym19_1_1507751279292_16011">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 clear="none"><br clear="none">Best regards,<br clear="none">Lucas Veiga Ayres Pimenta</div></div><br clear="none">_______________________________________________<br clear="none">adegenet-forum mailing list<br clear="none">adegenet-forum@lists.r-forge.r-project.org<br clear="none">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum<br clear="none"></div></div></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></body></html>