plotProfileDendrogram: Plot soil profiles below a dendrogram

View source: R/plotProfileDendrogram.R

plotProfileDendrogramR Documentation

Plot soil profiles below a dendrogram

Description

Plot soil profiles below a dendrogram

Usage

plotProfileDendrogram(
  x,
  clust,
  rotateToProfileID = FALSE,
  scaling.factor = 0.01,
  width = 0.1,
  y.offset = 0.1,
  dend.y.scale = max(clust$height * 2, na.rm = TRUE),
  dend.color = par("fg"),
  dend.width = 1,
  dend.type = c("phylogram", "cladogram"),
  debug = FALSE,
  ...
)

Arguments

x

a SoilProfileCollection object

clust

a hierarchical clustering object generated by hclust, cluster::agnes, or cluster::diana

rotateToProfileID

logical, attempt rotation of dendrogram according to original profile IDs, requires dendExtend package

scaling.factor

vertical scaling of the profile heights (may have to tinker with this)

width

scaling of profile widths

y.offset

vertical offset for top of profiles

dend.y.scale

extent of y-axis (may have to tinker with this)

dend.color

dendrogram line color

dend.width

dendrogram line width

dend.type

dendrogram type, passed to plot.phylo(), either "phylogram" or "cladogram"

debug

logical,optionally print debugging data

...

additional arguments to plotSPC

Details

This function places soil profile sketches below a dendrogram.

Value

a data.frame of IDs and linking structure

Note

You may have to tinker with some of the arguments to get optimal arrangement and scaling of soil profiles.

Author(s)

D.E. Beaudette


sharpshootR documentation built on Oct. 23, 2024, 1:06 a.m.