Learn R Programming

grofit (version 1.1.1-1)

plot.drFitSpline: Generic plot function for drFitSpline objects

Description

Generic plot function for drFitSpline objects

Usage

"plot"(x, add = FALSE, ec50line = TRUE, pch = 1, colSpline = 1, colData = 1, cex = 1, ...)

Arguments

x
Object of class drFitSpline.
add
Logical, indicates wether the plot should be added to an existing plot device or plotted in a new window.
ec50line
Logical, indicates wether the EC50 value and respecting response values should be visualized by a dotted line.
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.
colSpline
Vector, describing the color used for plotting the spline fit. Similar to the col option from plot.default. The values must be (numeric) from 0:8 or (character) an element of colors().
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.
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

drFitSpline

Examples

Run this code
x <- 1:30
y <- 1/(1+exp(-0.5*(15-x)))+rnorm(30)/20
TestRun <- drFitSpline(x,y)
plot(TestRun, colData=c(1,3),pch=1:4,cex=3:5, colSpline=c("tomato"))

Run the code above in your browser using DataLab