lines.gqcStruct {grt} | R Documentation |
lines Method for class 'gqc'
Description
Add a quadratic decision boundary line through the current plot.
Usage
## S3 method for class 'gqcStruct'
lines(x,
xlim = c(0,1), ylim = c(0,1),
npoints = 100, col = "black",
...)
Arguments
x |
object of class |
xlim |
the x limits of the plot. Default to |
ylim |
the y limits of the plot. Default to |
npoints |
numeric. number of points per dimension used to plot the decision bound. Default is 100. |
col |
the color to be used for the line |
... |
further arguments. |
Value
an invisible list of x- and y-coordinates of the line:
x |
a vector of x-coordinates of the line |
y |
a vector of y-coordinates of the line |
See Also
Examples
data(subjdemo_2d)
fit.2dq <- gqc(response ~ x + y, data=subjdemo_2d,
category=subjdemo_2d$category, zlimit=7)
plot(fit.2dq, fitdb=FALSE, initdb=FALSE)
lines(fit.2dq$par, xlim=c(0,400), ylim=c(0,400), col="red")
lines(fit.2dq$initpar, xlim=c(0,400), ylim=c(0,400), col="blue")
[Package grt version 0.2.1 Index]