plot.gcFitModel {QurvE} | R Documentation |
Generic plot function for gcFitModel
objects.
Description
Plot the results of a parametric model fit on growth vs. time data
Usage
## S3 method for class 'gcFitModel'
plot(
x,
raw = TRUE,
pch = 1,
colData = 1,
equation = TRUE,
eq.size = 1,
colModel = "forestgreen",
basesize = 16,
cex.point = 2,
lwd = 0.7,
x.lim = NULL,
y.lim = NULL,
n.ybreaks = 6,
plot = TRUE,
export = FALSE,
height = 6,
width = 8,
out.dir = NULL,
...
)
Arguments
x |
A |
raw |
(Logical) Show the raw data within the plot ( |
pch |
(Numeric) Symbol used to plot data points. |
colData |
(Numeric or Character) Color used to plot the raw data. |
equation |
(Logical) Show the equation of the fitted model within the plot ( |
eq.size |
(Numeric) Provide a value to scale the size of the displayed equation. |
colModel |
(Numeric or Character) Color used to plot the fitted model. |
basesize |
(Numeric) Base font size. |
cex.point |
(Numeric) Size of the raw data points. |
lwd |
(Numeric) Spline line width. |
x.lim |
(Numeric vector with two elements) Optional: Provide the lower ( |
y.lim |
(Numeric vector with two elements) Optional: Provide the lower ( |
n.ybreaks |
(Numeric) Number of breaks on the y-axis. The breaks are generated using |
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 |
... |
Further arguments to refine the generated |
Value
A plot with the parametric fit.
Examples
# Create random growth dataset
rnd.dataset <- rdm.data(d = 35, mu = 0.8, A = 5, label = "Test1")
# Extract time and growth data for single sample
time <- rnd.dataset$time[1,]
data <- rnd.dataset$data[1,-(1:3)] # Remove identifier columns
# Perform parametric fit
TestFit <- growth.gcFitModel(time, data, gcID = "TestFit",
control = growth.control(fit.opt = "m"))
plot(TestFit, basesize = 18, eq.size = 1.5)