plot.dr: Basic plot of a dr object

Description Usage Arguments Value Author(s) Examples

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

1
2
## 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 pairs.

...

arguments passed to the plot.method.

Value

Returns a graph.

Author(s)

Sanford Weisberg, <sandy@stat.umn.edu>.

Examples

1
2
3
4
5
6
7
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)
 

dr documentation built on May 2, 2019, 5:49 p.m.