riskCpGpattern: Plot the detected association pattern with one phenotype...

Description Usage Arguments Details Value Author(s) Examples

View source: R/HIRE.R

Description

The detected association pattern is a way to visualize the p-values providied by the HIRE function.

Usage

1
riskCpGpattern(pval_matr, main_title = "Detected association pattern", hc_row_ind = FALSE)

Arguments

pval_matr

the p-value matrix for one phenotype, where one row represents a CpG site and one column indicates one cell type.

main_title

the title name. The default is "Detected association pattern".

hc_row_ind

whether we conduct hierarchical clustering in the row. The default is FALSE.

Details

This function depends on the heatmap.2 function in the gplots R package.

Value

return a heatmap

Author(s)

Xiangyu Luo

Examples

1
2
3
4
5
6
#a p-value matrix from the uniform distribution
pvalues <- matrix(runif(600), 100, 6)

#Visualize this p-value matrix
riskCpGpattern(pvalues, 
		main_title="An example", hc_row_ind = FALSE)

HIREewas documentation built on Nov. 8, 2020, 6:04 p.m.