plot.drFit {QurvE} | R Documentation |
Generic plot function for drFit
objects.
Description
plot.drFit
calls plot.drFitSpline
for each group used in a dose-response analysis
Usage
## S3 method for class 'drFit'
plot(
x,
combine = TRUE,
names = NULL,
exclude.nm = NULL,
pch = 16,
cex.point = 2,
basesize = 15,
colors = NULL,
lwd = 0.7,
ec50line = TRUE,
y.lim = NULL,
x.lim = NULL,
y.title = NULL,
x.title = NULL,
log.y = FALSE,
log.x = FALSE,
plot = TRUE,
export = FALSE,
height = NULL,
width = NULL,
out.dir = NULL,
out.nm = NULL,
...
)
Arguments
x |
object of class |
combine |
(Logical) Combine the dose-response analysis results of all conditions into a single plot ( |
names |
(String or vector of strings) Define conditions to combine into a single plot (if |
exclude.nm |
(String or vector of strings) Define conditions to exclude from the plot (if |
pch |
(Numeric) Shape of the raw data symbols. |
cex.point |
(Numeric) Size of the raw data points. |
basesize |
(Numeric) Base font size. |
colors |
(Numeric or character) Define colors for different conditions. |
lwd |
(Numeric) Line width of the individual splines. |
ec50line |
(Logical) Show pointed horizontal and vertical lines at the EC50 values ( |
y.lim |
(Numeric vector with two elements) Optional: Provide the lower ( |
x.lim |
(Numeric vector with two elements) Optional: Provide the lower ( |
y.title |
(Character) Optional: Provide a title for the y-axis. |
x.title |
(Character) Optional: Provide a title for the x-axis. |
log.y |
(Logical) Log-transform the y-axis of the plot ( |
log.x |
(Logical) Log-transform the x-axis of the plot ( |
plot |
(Logical) Show the generated plot in the |
export |
(Logical) Export the generated plot as PDF and PNG files ( |
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 |
out.nm |
(Character) The name of the PDF and PNG files if |
... |
Additional arguments. This has currently no effect and is only meant to fulfill the requirements of a generic function. |
Value
One plot per condition tested in the dose-response analysis or a single plot showing all conditions if control = growth.control(dr.method = "spline")
was used in growth.drFit
and combine = TRUE
.
Examples
# Create random growth data set
rnd.data1 <- rdm.data(d = 35, mu = 0.8, A = 5, label = "Test1")
rnd.data2 <- rdm.data(d = 35, mu = 0.6, A = 4.5, label = "Test2")
rnd.data <- list()
rnd.data[["time"]] <- rbind(rnd.data1$time, rnd.data2$time)
rnd.data[["data"]] <- rbind(rnd.data1$data, rnd.data2$data)
# Run growth curve analysis workflow
gcFit <- growth.gcFit(time = rnd.data$time,
data = rnd.data$data,
parallelize = FALSE,
control = growth.control(fit.opt = "s",
suppress.messages = TRUE))
# Perform dose-response analysis
drFit <- growth.drFit(gcTable = gcFit$gcTable,
control = growth.control(dr.parameter = "mu.spline"))
# Inspect results
summary(drFit)
plot(drFit)