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,
...
)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.
a SoilProfileCollection object
a hierarchical clustering object generated by hclust(), cluster::agnes(), or cluster::diana()
logical, attempt rotation of dendrogram according to original profile IDs, requires dendextend package
numeric, vertical scaling of the profile heights (default estimate printed if not specified)
numeric, scaling of profile widths
numeric, vertical offset for top of profiles (default estimate printed if not specified)
numeric, scaling of dendrogram (default estimate printed if not specified)
dendrogram line color
dendrogram line width
dendrogram type, passed to plot.phylo(), either "phylogram" or "cladogram"
logical, optionally print debugging data and return a data.frame of linking structure
additional arguments to plotSPC()
D.E. Beaudette