Check that dendrograms are positioned correctly
check_dendrogram_pos(dat, context = c("row", "col"), dendro)
dendro
is returned as is if the positions are correct. Otherwise there is an error.
Long format data for plotting.
Dimension to which the dendrogram is added. These are used to directly get the columns in the long data and thus need to be "row" or "col".
The dendrogram segments and nodes list.