[adegenet-forum] Add XY axes and labels to s.class or scatter.dapc PCA plot

Thibaut Jombart thibautjombart at gmail.com
Wed Apr 4 17:54:18 CEST 2018


Hi there,

scatter.dapc should only be used for dapc objects.

For further customisation of s.class graphics, I would recommend using
adegraphics:
https://cran.r-project.org/web/packages/adegraphics/vignettes/adegraphics.html

Best
Thibaut


--
Dr Thibaut Jombart
Lecturer, Department of Infectious Disease Epidemiology, Imperial College
London
Head of RECON: repidemicsconsortium.org
WHO Consultant - outbreak analysis
https://thibautjombart.netlify.com
Twitter: @TeebzR
+44(0)20 7594 3658

On 29 March 2018 at 17:27, Daniel T. Baldassarre <danieltb at princeton.edu>
wrote:

> Hello,
>
> I have a ‘genind' object with genotyped individuals assigned to known
> populations. I’m using ’s.class' and ‘scatter.dapc' to produce PCA plots
> where the individuals are colored by population. This works without any
> issue and produces beautiful plots, but I’m wondering if there is a way to
> add values and labels to the XY axes as is done in, for example,
> ‘colorplot’.
>
> Thanks!
>
> ---
> Daniel T. Baldassarre
>
> Postdoctoral Research Associate
> Riehl Lab, Dept of Eco and Evo Bio
> Princeton University
> 106A Guyot Hall
> Princeton, NJ 08544
> 609-258-4919
> danbaldassarre.weebly.com
>
>
>
> _______________________________________________
> adegenet-forum mailing list
> adegenet-forum at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/
> listinfo/adegenet-forum
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20180404/573260cc/attachment-0001.html>


More information about the adegenet-forum mailing list