Learn R Programming

neatmaps (version 1.1.0)

plotDendrogram: Plot Dendrogram

Description

plotDendrogram plots the dendrogram of the results of the analysis performed by the neatmap function.

Usage

plotDendrogram(dend, results, labelsCex, pCex, pAlpha = 0.95,
  showSign = TRUE, dendTitle = paste("Cluster Dendrogram with AU/BP values",
  "(%)\n AU Values Highlighted by Signif"))

Arguments

dend

The dendrogram object to plot.

results

The results of the hierarchical clustering analysis performed on the data.

labelsCex

The font size of the labels of the dendrogram.

pCex

The font size of the p-value labels of the dendrogram.

pAlpha

The level of significance chosen to detect significant clusters.

showSign

A boolean indicating whether or not to add the p-values to the dendrogram.

dendTitle

The title of the dendrogram plot.

Value

The dendrogram with the statistical analysis provided by pvclust.

Examples

Run this code
# NOT RUN {
df <- netsDataFrame(net.attr.df = networkAttrDF,
                    node.attr.df = nodeAttrDF,
                    edge.df = edgeDF)
results <- neatmap(df, scale.df = "basic", mainTitle = "Heatmap", 
                    xlabel = "Chararacteritics", ylabel = "Networks",
                    link.method = "single", dist.method = "euclidean",
                    nBootRep = 10)
dendrogram <- results[[1]]
pvclustResults <- results[[3]]
dend <- plotDendrogram(dend = dendrogram, results = pvclustResults,
                       labelsCex = 0.5, pCex = 0.60, pAlpha = 0.95)

# }

Run the code above in your browser using DataLab