plot.dr {dr} | R Documentation |
Basic plot of a dr object
Description
Plots selected direction vectors determined by a dimension reduction regression fit.
By default, the pairs
function is used for plotting, but the user can use any
other graphics command that is appropriate.
Usage
## S3 method for class 'dr'
plot(x, which = 1:x$numdir, mark.by.y = FALSE, plot.method = pairs, ...)
Arguments
x |
The name of an object of class dr, a dimension reduction regression object |
which |
selects the directions to be plotted |
mark.by.y |
if TRUE, color points according to the value of the response, otherwise, do not color points but include the response as a variable in the plot. |
plot.method |
the name of a function for the plotting. The default is |
... |
arguments passed to the plot.method. |
Value
Returns a graph.
Author(s)
Sanford Weisberg, <sandy@stat.umn.edu>.
Examples
data(ais)
# default fitting method is "sir"
s0 <- dr(LBM~log(SSF)+log(Wt)+log(Hg)+log(Ht)+log(WCC)+log(RCC)+
log(Hc)+log(Ferr),data=ais)
plot(s0)
plot(s0,mark.by.y=TRUE)
[Package dr version 3.0.10 Index]