<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Dear forum</div>
<div><br>
</div>
<div>I have two questions about the adegenet functions "colorplot" and "scatter"</div>
<div>I precise that I am a beginner with the package adegenet, so excuse me in advance if my questions seem a little stupid...</div>
<div><br>
</div>
<div>1. Colorplot</div>
<div><br>
</div>
<div>I made a colorplot to represent the result of a sPCA. The colorplot plots the different populations according to their localisation and the colors correspond to the global sPCA score. I would like to add a legend in a box representing the correspondance
 between colors and sPCA score (as the image below). I search... but I did not find anything to do this... </div>
<div><br>
</div>
<div>
<p><img src="cid:426d0c7f-6e00-4dd2-a001-eeab8f80089a" originalwidth="180" originalheight="104" rszimgcmd="100"></p>
<div><br>
</div>
<div><br>
</div>
<div>2. Scatter</div>
<div><br>
</div>
<div>I used the function scatter to represent the results of a DAPC. The colored dots in the plot represent the cluster, but I would like to know if it is possible that the dots represent populations instead of clusters. The clusters would be still represented
 with the colored bars and the ellipses. I only want to change the dot colors. I tried to manually add dots in the plot (with the function "points"), using the coordinates of each indviduals in the DAPC axes. But the dots did not appeared... maybe due to a
 scale problem that I cannot solve... </div>
<div>Here the function that I use for one population. The data frame "ind" contains the DAPC LD1 and LD2, and the population names of the different individuals :</div>
</div>
<div>
<div><br>
</div>
<div><span style="font-size: 13.3333330154419px;">points(ind$LD1[ind$pop=="Aussois"]), scale(ind$LD2[ind$pop=="Aussois"]), col="black", pch=16, cex = 1)</span></div>
<div><span style="font-size: 13.3333330154419px;"><br>
</span></div>
<div><span style="font-size: 13.3333330154419px;"><br>
</span></div>
<div>
<div>I hope that my questions are comprehensible. Thank you very much in advance for your help. Don't hesitate to let me know if you need further information to more understand my problems.</div>
<div><br>
</div>
<div>Thanks a lot!</div>
</div>
<div><br>
<div style="font-family:Tahoma; font-size:13px"><i><font size="4">Coraline Bichet</font></i>
<div>
<div><font size="2">coraline.bichet@univ-lyon1.fr</font></div>
<div><font size="2">+33(0)472433584</font></div>
<div>UMR-CNRS 5558, Laboratoire de Biométrie et Biologie Evolutive (LBBE) <br>
<div>Université Claude Bernard Lyon 1, bâtiment Mendel</div>
<div>43 boulevard du 11 novembre 1918</div>
<div>69622 Villeurbanne Cedex, FRANCE</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>