Learn R Programming

heartbeatr (version 1.0.0)

pulse_plot_one: heartbeatr utility function

Description

Basic function to quickly plot data from one data point only

Usage

pulse_plot_one(data)

Value

A ggplot object that can be augmented using ggplot2 syntax or plotted right away

Arguments

data

PULSE tibble (tow columns: $time and $val)

Examples

Run this code
## Begin prepare data ----
path <- pulse_example()
chn <- paste0("c", formatC(1:10, width = 2, flag = "0"))
heart_rates <- PULSE(
  path,
  discard_channels  = chn[-8],
  raw_v_smoothed = FALSE,
  show_progress = FALSE)
## End prepare data ----

pulse_plot_one(heart_rates$data[[1]])

Run the code above in your browser using DataLab