plot.gcFitSpline: Generic plot function for gcFitSpline objects

Description Usage Arguments See Also Examples

View source: R/plot.gcFitSpline.R

Description

Generic plot function for gcFitSpline objects.

Usage

1
2
3
4
## S3 method for class 'gcFitSpline'
plot(x, add = FALSE, raw = TRUE,
                           slope = TRUE, pch = 1, colData=1,
                           colSpline=2, cex = 1, ...)

Arguments

x

Object of class gcFitSpline.

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 the pch 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 the col 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.

colSpline

Vector, describing the color used for plotting the spline fit and the tangent of maximal slope. Similar to the col option from plot.default. The values must be (numeric) from 0:8 or an element of colors() (character).

cex

Numeric vector, describing the character expansion used for plotting the raw data. Similar to the cex 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

gcFitSpline

Examples

1
2
3
4
5
6
7
8
9
# 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$gcFittedSpline[[3]],
     colData=c("wheat","wheat2","wheat2","wheat3","wheat4"),
     colSpline=1,pch=4:7,cex=2:5)

grofit documentation built on May 30, 2017, 4:08 a.m.