heatmapDirection: Plot the directionality results in a heatmap.

Description Usage Arguments Value Examples

View source: R/heatmapDirection.R

Description

Given an dataframe with the directionality results obtained after apply the directionality function, a heatmap plot of the results is obtained.

Usage

1
2
3
heatmapDirection(input, interactive = FALSE,
  fromAtoBColor = "darkgreen", fromBtoAColor = "orange",
  noDirectionColor = "grey", verbose = FALSE)

Arguments

input

A data.frame obtained after applying the directionality function

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.

fromAtoBColor

Determines the heatmap color for the direction A to B. By default it is set to "olivegreen".

fromBtoAColor

Determines the heatmap color for the direction B to A. By default it is set to "orange".

noDirectionColor

Determines the heatmap color when there is no preferred direction. By default it is set to "grey".

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
load(system.file("extdata", "directionalityExample.RData", package="comoRbidity"))
htmpDirection <- heatmapDirection( input            = directionalityEx, 
                                   fromAtoBColor    = "darkgreen", 
                                   fromBtoAColor    = "orange", 
                                   noDirectionColor = "grey")
htmpDirection

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