plotRecover: plotRecover

View source: R/fraping.R

plotRecoverR Documentation

plotRecover

Description

Plot the recovery curves for multiple data sets.

Usage

plotRecover(
  ...,
  index = NA,
  type = "RCB",
  area = T,
  stand = T,
  AB = F,
  new.plot = T,
  plot.lines = F,
  plot.points = F,
  plot.shadow = F,
  plot.mean = F,
  col = NULL,
  getGroup = F
)

Arguments

...

One or more data sets to plot, each of class dataFrap.class.

index

Indices of the data sets to include in the plot. Default is NA (all data sets).

type

A vector or list of recovery curve types. Default is "RCB".

area

A vector or list indicating whether to use area normalization. Default is TRUE.

stand

A vector or list indicating whether to apply standardization. Default is TRUE.

AB

A vector or list indicating whether to include pre-bleach data. Default is FALSE.

new.plot

Boolean indicating whether to create a new plot. Default is TRUE.

plot.lines

Boolean indicating whether to plot recovery curves as lines. Default is FALSE.

plot.points

Boolean indicating whether to plot recovery curves as points. Default is FALSE.

plot.shadow

Boolean indicating whether to plot recovery curve shadows. Default is FALSE.

plot.mean

Boolean indicating whether to plot the mean recovery curve. Default is FALSE.

col

Colors to use for the plot. If NULL, colors are automatically assigned.

getGroup

Boolean indicating whether to return the group function. Default is FALSE.

Value

If getGroup is TRUE, returns a function for grouping data. Otherwise, generates the plot.

Examples

# Generate a plot of recovery curves for all data sets
plotRecover(data1, data2, data3)

# Generate a plot of recovery curves for specific data sets
plotRecover(data1, data2, data3, index = c(1, 3, 5))

# Return the group function for custom grouping
group_func <- plotRecover(getGroup = TRUE)
custom_group <- group_func(data1, data2)


artitzco/fraping documentation built on June 1, 2024, 10:08 a.m.