plot.drBootSpline {QurvE}R Documentation

Generic plot function for gcBootSpline objects.

Description

Generic plot function for gcBootSpline objects.

Usage

## S3 method for class 'drBootSpline'
plot(
  x,
  pch = 19,
  colData = 1,
  colSpline = "black",
  cex.point = 1,
  cex.lab = 1.5,
  cex.axis = 1.3,
  lwd = 2,
  plot = TRUE,
  export = FALSE,
  height = 7,
  width = 9,
  out.dir = NULL,
  combine = FALSE,
  ...
)

Arguments

x

A drBootSpline object created with growth.drBootSpline or stored within a grofit or drFit object created with growth.workflow or growth.drFit, respectively.

pch

(Numeric) Shape of the raw data symbols.

colData

(Numeric or Character) Color used to plot the raw data.

colSpline

(Numeric or Character) Color used to plot the splines.

cex.point

(Numeric) Size of the raw data points.

cex.lab

(Numeric) Font size of axis titles.

cex.axis

(Numeric) Font size of axis annotations.

lwd

(Numeric) Spline line width.

plot

(Logical) Show the generated plot in the Plots pane (TRUE) or not (FALSE).

export

(Logical) Export the generated plot as PDF and PNG files (TRUE) or not (FALSE).

height

(Numeric) Height of the exported image in inches.

width

(Numeric) Width of the exported image in inches.

out.dir

(Character) Name or path to a folder in which the exported files are stored. If NULL, a "Plots" folder is created in the current working directory to store the files in.

combine

(Logical) Indicate whether both dose-response curves and parameter plots shall be shown within the same window.

...

Further arguments to refine the generated base R plot.

Value

A plot with the all dose-response spline fits from the bootstrapping operation.

Examples

conc <- c(0, rev(unlist(lapply(1:18, function(x) 10*(2/3)^x))),10)
response <- c(1/(1+exp(-0.7*(4-conc[-20])))+stats::rnorm(19)/50, 0)

TestRun <- growth.drBootSpline(conc, response, drID = "test",
        control = growth.control(log.x.dr = TRUE, smooth.dr = 0.8, nboot.dr = 50))

print(summary(TestRun))
plot(TestRun, combine = TRUE)


[Package QurvE version 1.1.1 Index]