ecg_stripplot: A convenience function for plotting ECG time series and QRS...

View source: R/ecg_qa.R

ecg_stripplotR Documentation

A convenience function for plotting ECG time series and QRS detection

Description

A convenience function for plotting ECG time series and QRS detection

Usage

ecg_stripplot(
  ecg_df,
  beat_df = NULL,
  freq = 1000,
  max_rows = 5,
  spike_annotations = c("gqrs"),
  ibi_splines = c("gqrs"),
  spi = 2,
  width = 12,
  height = 10,
  out_pdf = "ecg_stripplot.pdf"
)

Arguments

ecg_df

a data.frame containing ECG data. Must have at least the columns 'time' and 'ecg', which are used for x and y axes, respectively.

beat_df

an optional data.frame containing beat events to plot against the trace

freq

the frequency of the data in Hz

max_rows

the number of rows on each page of the PDF

spike_annotations

which QRS algorithm columns to plot as points on the stripplot from beat_df

ibi_splines

which QRS algorithm RR columns to plot as splines against the ECG data

spi

How many seconds of data per inch to plot on the page. Default is 2, which allows one to resolve each beat by eye. Higher values (e.g., 10) may be useful for a summary view and to look for artifacts.

width

the width of the PDF output in inches. Default: 12

height

the height of the PDF output in inches. Default: 10

out_pdf

the filename (and optionally, path) of the PDF to be created

Author(s)

Michael Hallquist


PennStateDEPENdLab/experiment.pipeline documentation built on April 14, 2024, 9:37 p.m.