Learn R Programming

grofit (version 1.1.1-1)

plot.gcFitModel: Generic plot function for gcFitModel objects

Description

Generic plot function for gcFitModel objects.

Usage

"plot"(x, add = FALSE, raw = TRUE, slope = TRUE, pch = 1, colData=1, colModel=1, cex = 1, ...)

Arguments

x
Object of class gcFitModel.
add
Logical, indicates wether the plot should be added to an existing plot device or plotted in a new window.
raw
Logical, indicating wether the raw data should be plotted or not.
slope
Logical, indicating wether the tangent of maximal slope should be plotted or not.
pch
Numeric vector, describing plotting character used for plotting the raw data. Similar to thepch option from plot.default. The vector is recycled if the number of given data points differs from the length of the pch.
colData
Vector, describing the color used for plotting the raw data. Similar to thecol option from plot.default. The values must be (numeric) from 0:8 or (character) an element of colors(). The vector is recycled if the number of data points differ from the length of the colData.
colModel
Vector, describing the color used for plotting the spline fit and the tangent of maximal slope. Similar to thecol option from plot.default. The values must be (numeric) from 0:8 or (character) an element of colors().
cex
Numeric vector, describing the character expansion used for plotting the raw data. Similar to thecex option from plot.default. The vector is recycled if the number of data points differ from the length of the cex.
...
Other graphical parameters may also passed as arguments. This has currently no effect and is only meant to fulfill the requirements of a generic function.

See Also

gcFitModel

Examples

Run this code
# generate random data set
data <- ran.data(100,25)
time <- data$time
data <- data$data
# run growth curve fit
TestRun <- gcFit(time,data)
plot(TestRun$gcFittedModels[[6]],
     colData=c("wheat","wheat2","wheat2","wheat3","wheat4"),
     colModel=1,pch=4:7,cex=2:5)

Run the code above in your browser using DataLab