<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I am doing a DAPC for a dataset that contains 6 populations. Among all my samples, there are three different morphs and each population contains a variable mixture of each. What I want to do is to use a different color for each population (I managed to do it) and use a different type of point for each sample according to its moprhotype. I have a file that contains this info ( 1 colomn with either X, W or WR). <br><br></div>I tried using pch as described below, but the labels do not correspond to the individuals. <br><br>dapc1 <- dapc(Z1, n.pca = 10, n.da = 3)<br>c<-morph_data_6m[,1]<br>scatter(dapc1, cstar=0,cex=2.5, cell=0, label=NULL, leg = TRUE,scree.da=FALSE,txt.leg = c("233","287","418","674","878","957","1085"), <b>pch=c</b>)<br><br></div>Would there be a way to assign to each individual a type of point corresponding to its morphotype? Say point for W, star for X and triangle for WR.<br><br></div>Thanks for your help!<br></div>Nic<br><div><div><div><br><br><div><div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Nic Dussex PhD<br>Department of Zoology<br>University of Otago<br>340 Great King Street<br>P.O.Box 56<br>Dunedin 9054<br>New Zealand<br><br>Mobile: +64 21 02790938<br></div></div></div></div>
</div></div></div></div></div></div></div>