View source: R/PlotPowerBand.R
PlotPowerBand | R Documentation |
Plots the power of the heart rate signal at different bands of physiological interest.
PlotPowerBand(
HRVData,
indexFreqAnalysis = length(HRVData$FreqAnalysis),
normalized = FALSE,
hr = FALSE,
ymax = NULL,
ymaxratio = NULL,
ymaxnorm = 1,
Tags = NULL,
Indexes = NULL,
Tag = NULL,
verbose = NULL
)
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 |
PlotPowerBand
See PlotSinglePowerBand
for a more flexible
function for plotting power bands.
M. Lado, A. Mendez, D. Olivieri, L. Rodriguez, X. Vila
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.
CalculatePowerBand
for power calculation
and PlotSinglePowerBand
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.