clusterSampleUpperTriPlot: Compute and plot column correlation matrix. Normally used to...

Description Usage Arguments Value Examples

Description

Compute and plot column correlation matrix. Normally used to do sample corealtion of gene expression or OTU abundance matrix.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
clusterSampleUpperTriPlot(
  mat,
  method = "pearson",
  digits = 4,
  cor_file = NULL,
  saveplot = NULL,
  width = 13.5,
  height = 15,
  ...
)

Arguments

mat

A dataframe.

method

Type of correlation coefficient given to cor. Default "pearson".

digits

Number of decimial digits (given to round) to keep (default 4).

cor_file

Save ordered correlation matrix to given file name.

saveplot

Save plot to given file "a.pdf", "b.png".

width

Picture width in "cm".

height

Picture height in "cm".

...

Additional parameters given to ggsave.

Value

A ggplot2 object

Examples

1
2

Tong-Chen/YSX documentation built on Jan. 25, 2021, 2:49 a.m.