[adegenet-forum] problems adding predicted points to scatter plot
Andres Schjønhaug Susrud
andres.susrud at gmail.com
Thu Oct 30 21:02:12 CET 2014
Dear list,
I'm having problems adding points to a dapc scatter plot.
grp = find.clusters(human_DR_bind_2[1:200,])
dapc1 <- dapc(human_DR_bind_2[1:200,],grp$grp)
pred.sup <- predict.dapc(dapc1, newdata=x.sup2)
names(pred.sup)
scatter(dapc1, cell=2.5, pch=1, cstar=0, axesel=FALSE, col=c(2,3,4))
par(xpd=T)
points(pred.sup$ind.scores[,1],pred.sup$ind.scores[,2],pch = 2,col = 6)
the problem is that the predicted points are "all" visible, but completely
out of placement.
when plotting the dapc1$ind.scores[,1],dapc1$ind.scores
plot(dapc1$ind.scores[,1],dapc1$ind.scores)
points(pred.sup$ind.scores[,1],pred.sup$ind.scores[,2],pch = 2,col = 6)
the alligment seems fine.
thanks for any help on this matter
BR
Andres
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20141030/be16035b/attachment-0001.html>
More information about the adegenet-forum
mailing list