1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
% Copyright (C) 1998
% Berwin A. Turlach <bturlach@stats.adelaide.edu.au>
% Bill Venables <wvenable@stats.adelaide.edu.au>
% $Id: plot.l1celist.d,v 1.2 1999/11/30 06:14:16 bturlach Exp $
% --> ../COPYRIGHT for more details
\name{plot.l1celist}
\alias{plot.l1celist}
\title{Plot Method for `l1celist' Objects}
\description{
Plots a \code{l1celist} object on the current graphics device.
}
\usage{
\method{plot}{l1celist}(x, plot=TRUE, all=TRUE, constrained=FALSE,
type = "b", xlab = "bounds", ylab = "coeff | bounds", \dots)
}
\arguments{
\item{x}{fitted model object of class \code{l1celist}.}
\item{plot}{logical; if \code{TRUE} a \code{matplot()} of all the
coefficients in the list against the relative bound (absolute bound if
relative is not present) is plotted. Otherwise no plot is done.
}
\item{all}{logical; if \code{FALSE}, then only the non-zero
coefficients are returned.}
\item{constrained}{
if \code{TRUE} then only the coefficients that were constrained
are returned.}
\item{type, xlab, ylab, \dots}{further arguments with useful defaults
passed to \code{\link{matplot}}.}
}
\value{
A matrix with the bound(s) (relative [if used] and absolute),
the Lagrangian(s) and coefficints of the fitted model(s).
}
\examples{
data(Prostate)
l1c.P <- l1ce(lpsa ~ ., Prostate, bound=(1:20)/20)
length(l1c.P)# 20 l1ce models
plot(l1c.P)
}
\keyword{hplot}
|