dotchart.phylog | R Documentation |
dotchart.phylog
represents the phylogenetic tree and draws Cleveland dot
plot of each variable.
dotchart.phylog(phylog, values, y = NULL, scaling = TRUE, ranging = TRUE, yranging = NULL, joining = TRUE, yjoining = NULL, ceti = 1, cdot = 1, csub = 1, f.phylog = 1/(1 + ncol(values)), ...)
phylog |
an object of class |
values |
a vector or a data frame giving the variables |
y |
a vector which values correspond to leaves positions |
scaling |
if TRUE, data are scaled |
ranging |
if TRUE, dotplots are drawn with the same horizontal limits |
yranging |
a vector with two values giving the horizontal limits. If NULL, horizontal limits are defined by lower and upper values of data |
joining |
if TRUE, segments join each point to a central value |
yjoining |
a vector with the central value. If NULL, the central value equals 0 |
ceti |
a character size for editing horizontal limits, |
cdot |
a character size for plotting the points of the dot plot,
used with |
csub |
a character size for editing the names of variables, |
f.phylog |
a size coefficient for tree size (a parameter to draw the tree in proportion to leaves labels) |
... |
further arguments passed to or from other methods |
Daniel Chessel
Sébastien Ollier sebastien.ollier@u-psud.fr
symbols.phylog
and table.phylog
# one variable tre <- c("((A,B),(C,D));") phy <- newick2phylog(tre) x <- 1:4 par(mfrow = c(2,2)) dotchart.phylog(phy, x, scaling = FALSE) dotchart.phylog(phy, x) dotchart.phylog(phy, x, joining = FALSE) dotchart.phylog(phy, x, scaling = FALSE, yjoining = 0, yranging = c(-1, 5)) par(mfrow = c(1,1)) # many variables data(mjrochet) phy <- newick2phylog(mjrochet$tre) tab <- data.frame(log(mjrochet$tab)) dotchart.phylog(phy, tab, ceti = 0.5, csub = 0.6, cleaves = 0, cdot = 0.6) par(mfrow=c(1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.