variable.label: Variable labels for electrophoresis data

View source: R/ggplot.R

variable.labelR Documentation

Variable labels for electrophoresis data

Description

This function generates a customized descriptive label for a variable in an electrophoresis object.

Usage

variable.label(electrophoresis, variable, variable2 = NULL)

Arguments

electrophoresis

An electrophoresis object.

variable

The name of the variable to convert into a label. One of "time", "aligned.time", "distance", "relative.distance", "fluorescence", "length", "concentration", "molarity".

variable2

Optionally, the name of a second variable that is the denominator of the first (e.g. molarity per length).

Details

If your electrophoresis object contains multiple batches with different units for some reason, this function gives a warning and does not include a unit in the label.

Value

A "character" object containing a descriptive, human-readable label including the correct units (e.g. ng/µl, nM) specified in the original metadata.


jwfoley/bioanalyzeR documentation built on Aug. 1, 2023, 4:46 a.m.