View source: R/plotTreeHipamAnthropom.R
plotTreeHipamAnthropom | R Documentation |
This function represents a dendrogram for the clustering results provided by a HIPAM algorithm. It is a small modification of the original plot.tree
function of the smida R package, available from https://www.math.rug.nl/~ernst/book/smida.html.
plotTreeHipamAnthropom(x,main,...)
x |
The HIPAM object to be plotted. |
main |
Title of the plot. |
... |
Other arguments that may be supplied. |
A device with the desired plot.
This function only represents the 'tree' option of the original plot.tree
function of smida, because we believe that this option displays better the clustering results provided by HIPAM than the option '2d'.
This function was originally created by E. Wit et al., and it is available freely on https://www.math.rug.nl/~ernst/book/smida.html. We have slightly modified.
Vinue, G., Leon, T., Alemany, S., and Ayala, G., (2014). Looking for representative fit models for apparel sizing, Decision Support Systems 57, 22–33.
Wit, E., and McClure, J., (2004). Statistics for Microarrays: Design, Analysis and Inference. John Wiley & Sons, Ltd.
Wit, E., and McClure, J., (2006). Statistics for Microarrays: Inference, Design and Analysis. R package version 0.1. https://www.math.rug.nl/~ernst/book/smida.html.
hipamAnthropom
dataHipam <- sampleSpanishSurvey bust <- dataHipam$bust bustSizes <- bustSizesStandard(seq(74, 102, 4), seq(107, 131, 6)) type <- "IMO" maxsplit <- 5 ; orness <- 0.7 ah <- c(23, 28, 20, 25, 25) #For reproducing results, seed for randomness: #suppressWarnings(RNGversion("3.5.0")) #set.seed(2013) numSizes <- 1 res_hipam <- computSizesHipamAnthropom(dataHipam, bust, bustSizes$bustCirc, numSizes, maxsplit, orness, type, ah, FALSE) plotTreeHipamAnthropom(res_hipam[[1]], main=paste("Proposed Hierarchical PAM Clustering \n", "74-78"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.