plotFit: plotFit

View source: R/fraping.R

plotFitR Documentation

plotFit

Description

Plot the fitted or simulated recovery curves for multiple data sets.

Usage

plotFit(
  ...,
  fit,
  index = NA,
  type = "RCB",
  area = T,
  stand = T,
  simulated = F,
  Nsim = 50,
  seed = NA,
  npoints = 100,
  displacement = F,
  new.plot = T,
  plot.lines = F,
  plot.points = F,
  plot.shadow = F,
  plot.mean = F,
  col = NULL
)

Arguments

...

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

fit

An optional fit object obtained from the newFit function.

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.

simulated

A vector or list indicating whether to plot simulated recovery curves. Default is FALSE.

Nsim

A vector or list specifying the number of simulations to perform. Default is 50.

seed

A vector or list specifying the seed for the random number generator. Default is NA (no seed).

npoints

Number of points to use for generating the fitted/simulated curves. Default is 100.

displacement

Boolean indicating whether to displace the curves by their respective time0 values. Default is FALSE.

new.plot

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

plot.lines

Boolean indicating whether to plot the fitted/simulated curves as lines. Default is FALSE.

plot.points

Boolean indicating whether to plot the fitted/simulated curves as points. Default is FALSE.

plot.shadow

Boolean indicating whether to plot the shadow area around the fitted/simulated curves. Default is FALSE.

plot.mean

Boolean indicating whether to plot the mean fitted/simulated curve. Default is FALSE.

col

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

Examples

# Generate a plot of fitted recovery curves for all data sets
plotFit(data1, data2, data3, fit = myFit)

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

# Generate a plot of simulated recovery curves
plotFit(data1, data2, data3, fit = myFit, simulated = TRUE, Nsim = 100)


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