base_Fastcorrplot: help fast to draw a corrplot with multiple styles available...

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

help fast to draw a corrplot with multiple styles available to select

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 Fastcorrplot(data,
             transposition = T,#是否转置矩阵
             order = T,
             select,
             lower.col = NULL,
             upper.col =NULL,
             upper = NULL,
             tl.pos = NULL,
             tl.col=NULL,
             tl.srt=NULL,
             diag = NULL,
             width=10,height=10,
             savefile=T,
             names="test1")

Arguments

data

gene expression matrix or data frame with patient cols and gene rows.

transposition

Whether use t(data) before corrplot making.If your matrix is one with gene rows,you should let transposition=T.

order

Whether use AOE order strategy.Default is T.

select

genes your want to explore the correlations.Note that the select genes must be part of rownames of expr.

...

parameters from corrplot.mixed.Default = NULL.Also you can defined it alternatively.

savefile

whether saving plot as PDF file.

names

part of PDF file names.

Details

Fastcorrplot() help fast to draw a corrplot with multiple styles available to select.Fastcorrplot() is based on corrplot::corrplot.mixed().

Value

a cor matrix and a corrplot

Author(s)

Weibin Huang

References

corrplot.mixed()

See Also

corrplot.mixed()

Examples

 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
data(expr)
set.seed(2018);select=rownames(expr)[sample(1:nrow(expr),10)]
data <- expr[,1:(ncol(expr)-4)]
cor.matrix <- Fastcorrplot(data,
                           transposition = T,
                           select,
                           savefile=F,
                           names="test1")
# self-defined upper parameter
upper <- c("ellipse","circle","square","shade","pie")
cor.matrix <- Fastcorrplot(data,
                           transposition = T,
                           upper = upper[1],
                           select,
                           savefile=F,
                           names="test1")

# self-defined transposition parameter
upper <- c("ellipse","circle","square","shade","pie")
cor.matrix <- Fastcorrplot(data=state.x77,
                           transposition = F,
                           upper = upper[5],
                           select = colnames(state.x77),
                           savefile=F,
                           names="test1")

shijianasdf/BasicBioinformaticsAnalysisFromZhongShan documentation built on Jan. 3, 2020, 10:08 p.m.