sim.plot: Plot signal data

Description Usage Arguments Value See Also

View source: R/visual.R

Description

Plots signal data. The data can be binned into segments spanning equal time parts.

Usage

1
2
3
sim.plot(data, bin_width = NULL, plot_avg_and_dev = FALSE,
  avg = c("mean", "median"), point_size = 1, y.lim = NULL,
  title = "Flow rate", y.lab = "flow rate", x.lab = "time")

Arguments

data

baseline, as generated by function sim.baseline, possibly perturbed by other functions.

bin_width

number of time points per bin. If NULL, no binning.

avg

measure of average. Can be "mean" (then, measure of deviation is SD) or "median" (then, measure of deviation is MAD).

point_size

size of points.

y.lim

y-axis (values) limits (vector of length 2).

title

plot title.

y.lab

y-axis (values) label.

x.lab

x-axis (time) label.

Value

Modified baseline input.

See Also

See functions beginning with sim.sample. for examples of usage.


davnovak/qctoy documentation built on Nov. 4, 2019, 9:45 a.m.