Description Usage Arguments Details Value Author(s) See Also Examples
This function displays the scatterplot of the Multidimensional
Scaling (MDS) output by treescape, superimposing group information
(derived by findGroves
) using colors.
1 2 3 4 |
x |
a list returned by |
groups |
a factor defining groups of trees |
xax |
a number indicating which principal component to be used as 'x' axis |
yax |
a number indicating which principal component to be used as 'y' axis |
type |
a character string indicating which type of graph to use |
col.pal |
a color palette to be used for the groups |
bg |
the background color |
lab.show |
a logical indicating whether labels should be displayed |
lab.col |
a color for the labels |
lab.cex |
the size of the labels |
lab.optim |
a logical indicating whether label positions should be optimized to avoid overlap; better display but time-consuming for large datasets |
point.cex |
the size of the points |
scree.pal |
a color palette for the screeplot |
scree.size |
a size factor for the screeplot, between 0 and 1 |
scree.posi |
either a character string or xy coordinates indicating the position of the screeplot. |
... |
further arguments passed to |
This function relies on s.class
from the adegraphics
package.
An adegraphics
object (class: ADEgS
)
Thibaut Jombart thibautjombart@gmail.com
findGroves
to find any clusters in the tree landscape
s.class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ## Not run:
if(require("adegenet") && require("adegraphics")){
## load data
data(woodmiceTrees)
## run findGroves: treescape+clustering
res <- findGroves(woodmiceTrees, nf=5, nclust=6)
## basic plot
plotGroves(res)
## adding labels
plotGroves(res, lab.show=TRUE)
## customizing
plotGroves(res, lab.show=TRUE,
bg="black", lab.col="white", scree.size=.35)
## customizing
plotGroves(res, type="ellipse", lab.show=TRUE,
lab.optim=FALSE, scree.size=.35)
## example with no group information
plotGroves(res$treescape$pco)
## adding labels
plotGroves(res$treescape$pco, lab.show=TRUE, lab.cex=2)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.