riskCpGpattern {HIREewas} | R Documentation |
The detected association pattern is a way to visualize the p-values providied by the HIRE function.
riskCpGpattern(pval_matr, main_title = "Detected association pattern", hc_row_ind = FALSE)
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. |
This function depends on the heatmap.2 function in the gplots R package.
return a heatmap
Xiangyu Luo
#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)