Description Usage Arguments Value Author(s) See Also Examples
View source: R/simprof-dendrogram.R
A function to plot a dendrogram based on the results of simprof().
1 2 | simprof.plot(results, leafcolors=NA, plot=TRUE, fill=TRUE,
leaflab="perpendicular", siglinetype=1)
|
results |
The object returned by |
leafcolors |
A vector of color names/identifiers (names or hex codes); it should be the same length as
|
plot |
A logical option indicating whether to plot the dendrogram
( |
fill |
A logical option indicating whether to color the entire subtree which comprises a signficant color (as opposed to just coloring the individual leaves). |
leaflab |
The option from |
siglinetype |
A numeric option indicating the type of line to use
for the significant clusters (the line type chosen applies to all
significant clusters). The possible values are 0=blank, 1=solid
(default), 2=dashed, 3=dotted, 4=dotdash, 5=longdash,
6=twodash, and |
A dendrogram is returned. If "plot=TRUE"
, the dendrogram
is also plotted.
Douglas Whitaker and Mary Christman
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Load the USArrests dataset included with R
# And use abbreviations of state names
# We leave out the third column because
# it is on a different scale
usarrests<-USArrests[,c(1,2,4)]
rownames(usarrests)<-state.abb
# Run simprof on the data
res <- simprof(data=usarrests,
method.distance="braycurtis")
# Graph the result
pl.color <- simprof.plot(res)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.