\HeaderA{ggabline}{Grob function: abline}{ggabline}
\keyword{hplot}{ggabline}
\begin{Description}\relax
Add line specified by slope and intercept to a plot
\end{Description}
\begin{Usage}
\begin{verbatim}ggabline(plot = .PLOT, aesthetics=list(), ..., data=plot$data)\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{plot}] the plot object to modify
\item[\code{aesthetics}] named list of aesthetic mappings, see details for more information
\item[\code{...}] other options, see details for more information
\item[\code{data}] data source, if not specified the plot default will be used
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Aesthetic mappings that this grob function understands:

\Itemize{
\item none
}

Other options:

\Itemize{
\item intercept: intercept(s) of line
\item slope: slope(s) of line
\item colour: line colour
\item size: line thickness, in mm
}
\end{Details}
\begin{Author}\relax
Hadley Wickham <h.wickham@gmail.com>
\end{Author}
\begin{Examples}
\begin{ExampleCode}p <- ggplot(mtcars, aesthetics=list(x = wt, y=mpg))
ggabline(ggpoint(p), intercept=30, slope=-5)
ggabline(ggpoint(p), intercept=c(30,40,50), slope=-5)
ggsmooth(ggpoint(p), method=lm, formula=y~x) \end{ExampleCode}
\end{Examples}

