Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

PlotPowerBand

Plots power determined by CalculatePowerBand function


Description

Plots the power of the heart rate signal at different bands of physiological interest.

Usage

PlotPowerBand(HRVData, indexFreqAnalysis = length(HRVData$FreqAnalysis),
  normalized = FALSE, hr = FALSE, ymax = NULL, ymaxratio = NULL,
  ymaxnorm = 1, Tags = NULL, Indexes = NULL, Tag = NULL,
  verbose = NULL)

Arguments

HRVData

Data structure that stores the beats register and information related to it

indexFreqAnalysis

Numeric parameter used to reference a particular frequency analysis

normalized

Plots normalized powers if TRUE

hr

Plots heart rate signal if TRUE

ymax

Maximum value for y axis (unnormalized plots)

ymaxratio

Maximum value for y axis in LF/HF band (normalized and unnormalized plots)

ymaxnorm

Maximum value for y axis (normalized plots)

Tags

List of tags to specify which episodes, as apnoea or oxygen desaturation, are included in the plot. Tags = "all" plots all episodes present in the data.

Indexes

List of indexes to specify which episodes (see ListEpisodes), are included in the plot. Indexes = "all" plots all episodes present in the data.

Tag

Deprecated argument, use Tags instead

verbose

Deprecated argument maintained for compatibility, use setVerbose() instead

Details

PlotPowerBand

Note

See PlotSinglePowerBand for a more flexible function for plotting power bands.

Author(s)

M. Lado, A. Mendez, D. Olivieri, L. Rodriguez, X. Vila

References

L. Rodriguez-Linares, L., A.J. Mendez, M.J. Lado, D.N. Olivieri, X.A. Vila, and I. Gomez-Conde, "An open source tool for heart rate variability spectral analysis", Computer Methods and Programs in Biomedicine 103(1):39-50, july 2011.

See Also

CalculatePowerBand for power calculation and PlotSinglePowerBand

Examples

## Not run: 
# Reading a wfdb register and storing into a data structure:
md = CreateHRVData(Verbose = TRUE)
md = LoadBeatWFDB(md, RecordName = "register_name", 
                  RecordPath = "register_path")

# Calculating heart rate signal:md = BuildNIHR(md)

# Filtering heart rate signal:
md = FilterNIHR(md)
# Interpolating heart rate signal:
md = InterpolateNIHR(md)
# Calculating spectrogram and power per band:
md = CreateFreqAnalysis(md)
md = CalculatePowerBand(md, indexFreqAnalysis = 1, size = 120, 
                        shift = 10, sizesp = 1024)
# Plotting Power per Band
PlotPowerBand(md, hr = TRUE, ymax = 700000, ymaxratio = 4)

## End(Not run)

RHRV

Heart Rate Variability Analysis of ECG Data

v4.2.6
GPL-2
Authors
Leandro Rodriguez-Linares [aut, cre], Xose Vila [aut], Maria Jose Lado [aut], Arturo Mendez [aut], Abraham Otero [aut], Constantino Antonio Garcia [aut], Matti Lassila [ctb]
Initial release
2020-12-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.