Description Usage Arguments Details Note Author(s) References See Also Examples
View source: R/PlotPowerBand.R
Plots the power of the heart rate signal at different bands of physiological interest.
1 2 3 4 |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## 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.