View source: R/plotProfileDendrogram.R
| plotProfileDendrogram | R Documentation |
Plot soil profiles below a dendrogram, using methods from the ape package.
plotProfileDendrogram(
x,
clust,
rotateToProfileID = FALSE,
scaling.factor = 5 * mean(clust$height)/max(x),
width = 0.25,
y.offset = 60 * mean(clust$height)/max(x),
dend.y.scale = max(clust$height * 2, na.rm = TRUE),
dend.color = par("fg"),
dend.width = 1,
dend.type = c("phylogram", "cladogram"),
debug = FALSE,
...
)
x |
a |
clust |
a hierarchical clustering object generated by |
rotateToProfileID |
logical, attempt rotation of dendrogram according to original profile IDs, requires |
scaling.factor |
numeric, vertical scaling of the profile heights (default estimate printed if not specified) |
width |
numeric, scaling of profile widths |
y.offset |
numeric, vertical offset for top of profiles (default estimate printed if not specified) |
dend.y.scale |
numeric, scaling of dendrogram (default estimate printed if not specified) |
dend.color |
dendrogram line color |
dend.width |
dendrogram line width |
dend.type |
dendrogram type, passed to |
debug |
logical, optionally print debugging data and return a |
... |
additional arguments to |
This function is typically called to create graphical output, when debug = TRUE a data.frame of IDs and linking structure used to build the figure.
The default values of scaling.factor, y.offset, and dend.y.scale are based on clust$height and max(x), and should be close to optimal. Use the defaults as a starting point for finer control.
D.E. Beaudette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.