| plot.flFitSpline | R Documentation | 
flFitSpline objects.plot.flFitSpline generates the spline fit plot for a single sample.
## S3 method for class 'flFitSpline'
plot(
  x,
  add = FALSE,
  raw = TRUE,
  slope = TRUE,
  deriv = TRUE,
  spline = TRUE,
  log.y = FALSE,
  basesize = 16,
  pch = 1,
  colData = 1,
  colSpline = "dodgerblue3",
  cex.point = 2,
  lwd = 0.7,
  y.lim = NULL,
  x.lim = NULL,
  y.lim.deriv = NULL,
  n.ybreaks = 6,
  y.title = NULL,
  x.title = NULL,
  y.title.deriv = NULL,
  plot = TRUE,
  export = FALSE,
  width = 8,
  height = ifelse(deriv == TRUE, 8, 6),
  out.dir = NULL,
  ...
)
x | 
 Object of class   | 
add | 
 (Logical) Shall the fitted spline be added to an existing plot?   | 
raw | 
 (Logical) Display raw growth as circles (  | 
slope | 
 (Logical) Show the slope at the maximum slope (  | 
deriv | 
 (Logical) Show the derivative (i.e., slope) over time in a secondary plot (  | 
spline | 
 (Logical) Only for   | 
log.y | 
 (Logical) Log-transform the y-axis (  | 
basesize | 
 (Numeric) Base font size.  | 
pch | 
 (Numeric) Symbol used to plot data points.  | 
colData | 
 (Numeric or character) Contour color of the raw data circles.  | 
colSpline | 
 (Numeric or character) Spline line colour.  | 
cex.point | 
 (Numeric) Size of the raw data points.  | 
lwd | 
 (Numeric) Spline line width.  | 
y.lim | 
 (Numeric vector with two elements) Optional: Provide the lower (  | 
x.lim | 
 (Numeric vector with two elements) Optional: Provide the lower (  | 
y.lim.deriv | 
 (Numeric vector with two elements) Optional: Provide the lower (  | 
n.ybreaks | 
 (Numeric) Number of breaks on the y-axis. The breaks are generated using   | 
y.title | 
 (Character) Optional: Provide a title for the y-axis of the growth curve plot.  | 
x.title | 
 (Character) Optional: Provide a title for the x-axis of both growth curve and derivative plots.  | 
y.title.deriv | 
 (Character) Optional: Provide a title for the y-axis of the derivative plot.  | 
plot | 
 (Logical) Show the generated plot in the   | 
export | 
 (Logical) Export the generated plot as PDF and PNG files (  | 
width | 
 (Numeric) Width of the exported image in inches.  | 
height | 
 (Numeric) Height of the exported image in inches.  | 
out.dir | 
 (Character) Name or path to a folder in which the exported files are stored. If   | 
... | 
 Additional arguments. This has currently no effect and is only meant to fulfill the requirements of a generic function.  | 
A plot with the nonparametric fit.
# load example dataset
input <- read_data(data.growth = system.file("lac_promoters_growth.txt", package = "QurvE"),
                   data.fl = system.file("lac_promoters_fluorescence.txt", package = "QurvE"),
                   csvsep = "\t",
                   csvsep.fl = "\t")
# Extract time and normalized fluorescence data for single sample
time <- input$time[4,]
data <- input$norm.fluorescence[4,-(1:3)] # Remove identifier columns
# Perform linear fit
TestFit <- flFitSpline(time = time,
                       fl_data = data,
                       ID = "TestFit",
                       control = fl.control(fit.opt = "s", x_type = "time"))
plot(TestFit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.