[adegenet-forum] Changes to Scatter Function
Jombart, Thibaut
t.jombart at imperial.ac.uk
Mon Jul 4 15:31:38 CEST 2011
ps: I suspect you've been through it already, but there are a few examples of dapc scatterplots customization in:
vignette("adegenet-dapc")
Cheers
Thibaut
________________________________________
From: adegenet-forum-bounces at r-forge.wu-wien.ac.at [adegenet-forum-bounces at r-forge.wu-wien.ac.at] on behalf of Jombart, Thibaut [t.jombart at imperial.ac.uk]
Sent: 04 July 2011 14:13
To: Roy Francis Mathew; adegenet-forum at r-forge.wu-wien.ac.at
Subject: Re: [adegenet-forum] Changes to Scatter Function
Hello,
thanks for the feeback. For your questions:
> *Change the size of legend box and legend text/spacing etc
Nop. You will need to add the legend using "legend" for further customization.
> *Change the size of the plotted points (such as cex)
Yes: cex=...
> *It was possible to change the size and text of the subtitle of the inset plot, but no longer possible.
Yes. I thought since the content is always the same, there was no need for adding yet another argument to change subtitles. Further customization is possible via add.scatter.eig and add.scatter (ade4 package).
> *When pch is changed on the graph it doesnt change in the legend
True. So far only the color is used in the legend. I will think about changing that in the next release. But again, easy to customize using 'legend'.
> *Why does scatter give a completely different plot when used with result from dudi.pca?
This is because 'scatter' is a generic function. If you look for the code:
###
> scatter
function (x, ...)
UseMethod("scatter")
###
So it actually calls different methods for objects with different classes. The method used on outputs of dudi.pca is scatter.dudi; there is a scatter.dapc for dapc objects.
Cheers
Thibaut
______________________________________
From: adegenet-forum-bounces at r-forge.wu-wien.ac.at [adegenet-forum-bounces at r-forge.wu-wien.ac.at] on behalf of Roy Francis Mathew [RoyFrancis.Mathew at agrsci.dk]
Sent: 02 July 2011 15:33
To: adegenet-forum at r-forge.wu-wien.ac.at
Subject: Re: [adegenet-forum] Changes to Scatter Function
Hi,
I have noticed that the scatter function has been improved and arguments have changed slightly.
The addition of the legend is helpful. And the other additional features are fantastic.
I was wondering if the following are possible:
*Change the size of legend box and legend text/spacing etc
*Change the size of the plotted points (such as cex)
*It was possible to change the size and text of the subtitle of the inset plot, but no longer possible.
*When pch is changed on the graph it doesnt change in the legend
*Why does scatter give a completely different plot when used with result from dudi.pca?
Thanks in advance,
Regards
Roy Mathew Francis
royfrancis.mathew at agrsci.dk
+45 52809424 (mob)
----------------------------------------
Aarhus University
Department of Integrated Pest Management
Faculty of Agricultural Sciences
Forsøgsvej 1, Slagelse, DK 4200
----------------------------------------
This email may contain information that is confidential.
Any use or publication of this email without written
permission from Faculty of Agricultural Sciences is not
allowed. If you are not the intended recipient, please
notify Faculty of Agricultural Sciences immediately and
delete this email.
_______________________________________________
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
_______________________________________________
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
More information about the adegenet-forum
mailing list