PlotHeatmap {IDMIR}R Documentation

PlotHeatmap

Description

The function "PlotHeatmap" is used to plot a heat map of miRNA targets expression.

Usage

PlotHeatmap(MiRNA_CRData,yaxis=c(-2,2),scale="row",
cluster.rows=FALSE,cluster.cols=FALSE,show.colnames=FALSE,
ann_colors=c("#ef6d6d","#5470c6"),col=c("#ef6d6d","#5470c6"))

Arguments

MiRNA_CRData

A list includes a data frame with seven parts those are "sample", "status", "time", "target genes expression", "risk score", "group", and a data frame with five columns those are "Gene", "HR", "HR.95L", "HR.95H", "beta", and "P-value".

yaxis

The upper and lower limits of this heat map.

scale

character indicating if the values should be centered and scaled in either the row direction or the column direction, or none. Corresponding values are "row", "column" and "none".

cluster.rows

A logical value that represents whether row clustering is used.

cluster.cols

A logical value that represents whether col clustering is used.

show.colnames

This parameter controls whether column names are displayed.

ann_colors

Vector of colors used to define groups.

col

Vector of colors used in the heatmap.

Value

A heat map of miRNA targets expression.

Examples

# Obtain the example data
GEP<-GetData_Mirna("GEP")
survival<-GetData_Mirna("survival")
MiRNAs<-c("hsa-miR-21-5p","hsa-miR-26a-5p","hsa-miR-369-5p","hsa-miR-1238-3p","hsa-miR-10b-5p")
# Run the function
SingleMiRNA_CRData<-SingleMiRNA_CRModel(GEP,
"hsa-miR-21-5p",survival,cutoff.point=NULL)
PlotHeatmap(SingleMiRNA_CRData)
MutiMiRNA_CRData<-MutiMiRNA_CRModel(GEP,
MiRNAs,survival,cutoff.point=NULL)
PlotHeatmap(MutiMiRNA_CRData)

[Package IDMIR version 0.1.0 Index]