selectData: Select data

Description Usage Arguments Details Value

View source: R/interactive.R

Description

Interactively delete observations from a time series

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
selectData(
  date,
  r,
  deleted = NULL,
  extend = 48,
  xlab = "Date",
  ylab = "",
  width = 12,
  height = 4,
  palette = defaultPalette[c(2, 1)],
  ...
)

Arguments

date

sample times.

r

recorded response.

deleted

initial logical vector indicating which observations are to be deleted.

extend

the period (in hours) before and after the selection to be shown in the zoom window.

xlab

label for the x axis

ylab

label for the y axis

width

width of the interface windows.

height

height of the interface windows.

palette

a colour palette of 4 colours.

...

additional parameters to pass to plot.

Details

Interactively delete observations from a time series. The time series is displayed. Left mouse button clicks zoom on a region of the plot; right mouse button clicks toggle deletion of individual points.

'q' Quits, returning a indicator vector
'r' Reset zoom to full plot range
's' Toggle reseting of y axes scale on zoom
'+'/'-' Adjust the level of zoom
'Left/Right arrow' Jump forward or backward in hte time series

Value

a logical vector that indicates the observations to be deleted.


SWotherspoon/BAStag documentation built on March 29, 2021, 2:47 a.m.