plot_pick: Plot a dataset contain defined peaks

Description Usage Arguments Value Examples

Description

Plot a dataset contain defined peaks

Usage

1
plot_pick(data, x, y)

Arguments

data

A tibble containing the data to pick peaks in

x

Column containing the x-values

y

Column containing the y-values

Value

A ggplot

Examples

1
2
3
4
5
6
library(tibble)
library(dplyr)

tibble(x1 = seq(0.1, 9, 0.01), y1 = sin(x1)) %>%
  add_pick(c(148,776)) %>%
  plot_pick(x1, y1)

emiltb/peakr documentation built on May 28, 2019, 8:36 p.m.