plotFragHeatmap {EZFragility}R Documentation

Visualization functions (raw signal, fragility matrix)

Description

plotFragHeatmap: plot fragility heatmaps with electrodes marked as soz colored

plotFragQuantile: Plot Fragility time quantiles for two electrodes group marked as SOZ and reference

plotFragQuantile: Plot Fragility time distribution for two electrodes group marked as SOZ and reference

Usage

plotFragHeatmap(frag, sozIndex = NULL)

plotFragQuantile(frag, sozIndex = NULL)

plotFragDistribution(frag, sozIndex = NULL)

Arguments

frag

Fragility object from calcAdjFrag

sozIndex

Integer or string. A group of electrodes to mark as in the Seizure Onset Zone (SOZ)

Value

A ggplot object

Examples


data("pt01EcoG")

## sozIndex is the index of the electrodes we assume are in the SOZ
sozIndex <- attr(pt01EcoG, "sozIndex")

## precomputed fragility object
data("pt01Frag")

## plot the fragility heatmap
plotFragHeatmap(frag = pt01Frag, sozIndex = sozIndex)

## plot the fragility quantiles
plotFragQuantile(frag = pt01Frag, sozIndex = sozIndex)

## plot the fragility distribution
plotFragDistribution(frag = pt01Frag, sozIndex = sozIndex)


[Package EZFragility version 1.0.3 Index]