boxData: Box-Plots of Data Ranges

Description Usage Arguments Value Author(s)

View source: R/plot.R

Description

returns data for group of wells in a given range of the x-axis; if only one value is given, the values closest to this x-axis points are returned; see "Value" for details.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
boxData(
  data,
  rng,
  groups,
  xid,
  yid = "OD",
  interpolate = TRUE,
  plot = TRUE,
  type = "box",
  etype = "se",
  ylim,
  ylab,
  ...
)

Arguments

data

platexpress data, see readPlateData

rng

x-axis range or a single point, for the latter the closest point will be selected or, if option interpolate=TRUE the value at rng will be interpolated using R base function approx

groups

a grouping of wells, see getGroups

xid

the x-axis ID, if multiple x-axes are present

yid

the y-axis data to be grouped

interpolate

interpolate data at rng (if a single value, see argument rng)

plot

if TRUE a box-plot or bar-plot will be plotted

type

either "box" (default) or "bar" for box-plot or bar-plot

etype

type of statistics to be used for error bars in the bar-plot, either "ci" (default) for the 95 the standard error

ylim

y-axis limits

ylab

y-axis label

...

further arguments to boxplot/barplot

Value

Returns an annotated data.frame of the values, with well and group IDs in the first two columns. The values in the third column are raw values (if argument rng was a single point on the x-axis) or mean values (if argumentrng was a range).

Author(s)

Rainer Machne raim@tbi.univie.ac.at


raim/platexpress documentation built on Jan. 18, 2022, 1:41 p.m.