emd_heatmap: Visualize an Earth Mover's Distance Square Matrix as a...

View source: R/emd.R

emd_heatmapR Documentation

Visualize an Earth Mover's Distance Square Matrix as a heatmap

Description

Visualize an Earth Mover's Distance Square Matrix as a heatmap

Usage

emd_heatmap(input, parameter, maxIter, normalize)

Arguments

input

Earth Mover's Distance Matrix or list storing patient time series data (also see function: patient_list)

parameter

In case list is input, the parameter of interest from time series data list

normalize

Indicates if parameter indicated needs to be normalized or not (TRUE by default)

Iter

In case input is time series data list, incate maxIter to calculate EMD matrix (also see function: emd_matrix)

Value

Visualized Earth Mover's Distance Matrix as a heatmap

Examples

list <- patient_list(
"https://raw.githubusercontent.com/MrMaximumMax/FBCanalysis/master/demo/phys/data.csv",
GitHub = TRUE)
#Sampling frequency is supposed to be daily
matrix <- emd_matrix(list, "FEV1")
emd_heatmap(matrix)


MrMaximumMax/FBCanalysis documentation built on June 23, 2022, 8:21 p.m.