Learn R Programming

EZFragility (version 1.0.3)

plotFragHeatmap: 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)

Value

A ggplot object

Arguments

frag

Fragility object from calcAdjFrag

sozIndex

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

Examples

Run this code

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)

Run the code above in your browser using DataLab