Debian Codegraph @

man/pvclust_show_signif_gradient.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/pvclust.R
3 \name{pvclust_show_signif_gradient}
4 \alias{pvclust_show_signif_gradient}
5 \title{Significance gradient of branches in a dendrogram (via pvclust)}
6 \usage{
7 pvclust_show_signif_gradient(
8 dend,
9 pvclust_obj,
10 signif_type = c("bp", "au"),
11 signif_col_fun = colorRampPalette(c("black", "darkred", "red")),
12 ...
13 )
14 }
15 \arguments{
16 \item{dend}{a dendrogram object}
17
18 \item{pvclust_obj}{a pvclust object}
19
20 \item{signif_type}{a character scalar (either "bp" or "au"), indicating
21 which of the two should be used to update the dendrogram.}
22
23 \item{signif_col_fun}{a function to create colors for the significant
24 gradient. Default is: colorRampPalette(c("black", "darkred", "red"))}
25
26 \item{...}{not used}
27 }
28 \value{
29 A dendrogram with updated branches
30 }
31 \description{
32 Shows the gradient of significance of branches in a dendrogram, based on a pvclust object
33 }
34 \examples{
35 \dontrun{
36 library(pvclust)
37 data(lung) # 916 genes for 73 subjects
38 set.seed(13134)
39 result <- pvclust(lung[, 1:20], method.dist = "cor", method.hclust = "average", nboot = 100)
40
41 dend <- as.dendrogram(result)
42 result \%>\%
43 as.dendrogram() \%>\%
44 hang.dendrogram() \%>\%
45 plot(main = "Cluster dendrogram with AU/BP values (\%)")
46 result \%>\% text()
47 result \%>\% pvrect(alpha = 0.95)
48
49 dend \%>\%
50 pvclust_show_signif(result) \%>\%
51 plot()
52 dend \%>\%
53 pvclust_show_signif(result, show_type = "lwd") \%>\%
54 plot()
55 result \%>\% text()
56 result \%>\% pvrect(alpha = 0.95)
57
58 dend \%>\%
59 pvclust_show_signif_gradient(result) \%>\%
60 plot()
61
62 dend \%>\%
63 pvclust_show_signif_gradient(result) \%>\%
64 pvclust_show_signif(result) \%>\%
65 plot(main = "Cluster dendrogram with AU/BP values (\%)\n bp values are highlighted by signif")
66 result \%>\% text()
67 result \%>\% pvrect(alpha = 0.95)
68 }
69 }
70 \seealso{
71 \link{pvclust_show_signif}, \link{pvclust_show_signif_gradient}
72 }