\HeaderA{plot.cggd}{Plot method for cggd objects}{plot.cggd}
\keyword{hplot}{plot.cggd}
\keyword{methods}{plot.cggd}
\begin{Description}\relax
Produce a plot of a cggd fit. The default is a complete coefficient path.
\end{Description}
\begin{Usage}
\begin{verbatim}
plot.cggd(x, steps=5, breaks = TRUE, first_k=1,last_k=Inf, xvar=c("step","t"),omit.zeros = TRUE, eps = 1e-10, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] cggd object
\item[\code{steps}] Number of steps to sample coefficients between each model iteration.
\item[\code{breaks}] If \code{TRUE}, then vertical lines are drawn at each
break point in the piecewise linear coefficient paths
\item[\code{first\_k}] The starting k, model iteration, to plot from.
\item[\code{last\_k}] The final k, model iteration, to plot from.
\item[\code{xvar}] The type of x variable against which to
plot. \code{xvar=step} plots against iteration steps of the model
(default). \code{xvar=t} plots against the \emph{time} along the coefficient path.
\item[\code{omit.zeros}] When the number of variables  is much greater than
the number of observations, many coefficients will never be nonzero;
this logical (default \code{TRUE}) avoids plotting these zero coefficents
\item[\code{eps}] Definition of zero above, default is \code{1e-10}
\item[\code{...}] Additonal arguments for generic plot. Can be used to set xlims,
change colors, line widths, etc
\end{ldescription}
\end{Arguments}
\begin{Value}
NULL
\end{Value}
\begin{Author}\relax
Cun-Hui Zhang and Ofer Melnik
\end{Author}
\begin{References}\relax
Cun-Hui Zhang (2007) "Continuous Generalized Gradient Descent" \emph{Journal of Computational and Graphical Statistics}
; see also \url{http://stat.rutgers.edu/~cunhui/software/CGGD.html}.
\end{References}
\begin{Examples}
\begin{ExampleCode}
data(housing)
attach(housing)
object <- cggd(x,y)
plot(object)
detach(housing)
\end{ExampleCode}
\end{Examples}

