[adegenet-forum] scatter plot problem

Jombart, Thibaut t.jombart at imperial.ac.uk
Mon Feb 23 12:58:53 CET 2015


Hi Irina,

I am not sure I understand what you are after, so sorry if I miss the point. If you want to represent a different group to the one used in the DAPC analysis on the DAPC scatterplot, use the argument 'grp'; from ?scatter.dapc:

  grp: a factor defining group membership for the individuals. The
          scatterplot is optimal only for the default group, i.e. the
          one used in the DAPC analysis.

Cheers
Thibaut


________________________________
From: adegenet-forum-bounces at lists.r-forge.r-project.org [adegenet-forum-bounces at lists.r-forge.r-project.org] on behalf of Irina Ilyushkina [Irina.Ilyushkina at vuw.ac.nz]
Sent: 23 February 2015 04:41
To: adegenet-forum at lists.r-forge.r-project.org
Subject: [adegenet-forum] scatter plot problem

Hi,

I'm new to R and would be extremely grateful if someone could help me with my problem. I need to indicate (with labels, with color, etc.) the original group assignment of every individual in the DAPC inferred clusters on the scatter plot. table.value(table(pop(x), grp$grp) is showing the type of plot I'm after but it's a bit confusing when you have to consider two plots at the same time so I'm looking for a way to combine both in one plot if it is possible.

Many thanks,

Irina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20150223/a5106f07/attachment.html>


More information about the adegenet-forum mailing list