plot_power_band {RHRV}R Documentation

Plots power calculated by power_band function

Description

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

Usage

plot_power_band(power, lsecs, normalized = FALSE, hr = NA, ymax = 160000, ymaxratio = 10, ymaxnorm = 1)

Arguments

power calculated by power_band()
lsecs seconds for x axis
normalized plots normalized powers if TRUE
hr heart rate signal
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)

Author(s)

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

References

L. Rodriguez-Linares, X. Vila, A. Mendez, M. Lado, D. Olivieri, "RHRV: An R-based software package for heart rate variability analysis of ECG recordings," 3rd Iberian Conference in Systems and Information Technologies (CISTI 2008), 21-23 June 2008.

See Also

power_band for power calculation

Examples

  ## Signal Creation
  l=1000;
  hamming=0.54-0.46*cos(2*pi*(0:(l-1))/(l-1))
  x=seq(length=l,from=0,by=.25)
  s1=sin(x*2.0*pi*0.025)*hamming
  s2=sin(x*2.0*pi*0.1)*hamming
  s3=sin(x*2.0*pi*0.3)*hamming
  s4=s1+s2+s3
  s=c(s1,s2,s3,s4)
  s=array(c(1:(4*l),s),dim=c(4*l,2))
  ## Calculating Spectrogram
  specgr=spectrogram(s,120,5,4)
  ## Calculating Power per Band
  pw=power_band(specgr)
  ## Plotting Power per Band
  plot_power_band(pw)

[Package RHRV version 1.0 Index]