-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBasicHeatmap.Rd
79 lines (61 loc) · 1.75 KB
/
BasicHeatmap.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myFun.R
\name{BasicHeatmap}
\alias{BasicHeatmap}
\title{Draw Basic heatmaps with not annotation}
\usage{
BasicHeatmap(
p.data,
color_min = "cyan",
color_mid = "black",
color_max = "gold",
break_min = -4,
break_mid = 0,
break_max = 4,
cluster_type = "hclust",
cluster_row = FALSE,
cluster_col = FALSE,
km_col = 3,
km_row = 3,
km_repeat_time = 100,
cluster_row_method = "complete",
cluster_row_distance = "euclidean",
cluster_col_method = "complete",
cluster_col_distance = "euclidean",
show_rowname = T,
show_colname = T
)
}
\arguments{
\item{p.data}{normlized matrix}
\item{color_min}{Color for minmal values.}
\item{color_mid}{Color for middle values.}
\item{color_max}{Color for max values.}
\item{break_min}{min values.}
\item{break_mid}{mid values.}
\item{break_max}{max values.}
\item{cluster_type}{Hierarchical clustering or k-means.}
\item{cluster_row}{For hclust, cluster row or not, default = FALSE.}
\item{cluster_col}{For hclust, cluster col or not, default = FALSE.}
\item{km_col}{For k-means, number of expected group of column.}
\item{km_row}{For k-means, number of expected group of column.}
\item{km_repeat_time}{Avoid different results of k-means each time, Default = 100.}
\item{cluster_row_method}{see hclust.}
\item{cluster_row_distance}{see hclust.}
\item{cluster_col_method}{see hclust.}
\item{cluster_col_distance}{see hclust.}
\item{show_rowname}{Show rownames or not.}
\item{show_colname}{Show colnames or not.}
}
\value{
a CompexHeatmap result
}
\description{
Draw Basic heatmaps with not annotation
}
\references{
https://jokergoo.github.io/ComplexHeatmap-reference/book/
}
\author{
Shawn Wang <http://www.shawnlearnbioinfo.top>
}