PlotPowerBand: Plots power determined by CalculatePowerBand function

Description Usage Arguments Details Note Author(s) References See Also Examples

View source: R/PlotPowerBand.R

Description

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

Usage

1
2
3
4
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

 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)

RHRV documentation built on May 30, 2017, 2:21 a.m.