Debian Codegraph @

man/pvclust_show_signif.Rd

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