heatmapPlot: Plot the comorbidity analysis results in a heatmap.

Description Usage Arguments Value Examples

View source: R/heatmap.R

Description

Given an object of class cAnalysis or molecularcAnalysis obtained from a comorbidity analysis, a heatmap is obtained.

Usage

1
2
3
heatmapPlot(input, selectValue = "score", cutOff = 0.05, npairs = 0,
  interactive = FALSE, lowColor = "#0000FF", highColor = "yellow",
  verbose = FALSE)

Arguments

input

A cAnalysis or molecularcAnalysis object, obtained by applying the comorbidityAnalysis or comorbidityAnalysisMolecular function

selectValue

By default "score" variable will be selected. Change it to any of the other possible variables ('correctedPvalue','odds ratio', 'phi', 'rr').

cutOff

By default '0.05'. The value of the argument can be changed to any other numeric variable, according to the range of the selected value.

npairs

by default '0'. The value of the argument can be changed to any other numeric variable to show in the network only those comorbidities suffered by at least npairs of patients.

interactive

Determines if the output heatmap is interactive or not. By default the interactive argument is set up as FALSE. The value of the argument can be changed to TRUE, as a result an interactive heatmap will be obtained.

lowColor

Determines the heatmap color for the lowest value. By default it is set to "#0000FF".

highColor

Determines the heatmap color for the highest value. By default it is set to "yellow".

verbose

By default FALSE. Change it to TRUE to get a on-time log from the function.

warnings

By default TRUE. Change it to FALSE to don't see the warnings.

Value

A heatmap

Examples

1
2
3
4
5
6
7
load(system.file("extdata", "comorMale.RData", package="comoRbidity"))
htmp <- heatmapPlot( input = comorMale, 
              selectValue  = "score", 
              cutOff       = 0.5, 
              npairs       = 2
              )
htmp

aGutierrezSacristan/comorbidity documentation built on April 10, 2020, 5:54 p.m.