\HeaderA{add\_scale}{Add scale}{add.Rul.scale}
\keyword{hplot}{add\_scale}
\keyword{internal}{add\_scale}
\begin{Description}\relax
Add (one) scale to the plot
\end{Description}
\begin{Usage}
\begin{verbatim}add_scale(p = .PLOT, scale)\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{p}] plot object, if not specified will use current plot
\item[\code{scale}] scale to add, see \code{\LinkA{scales}{scales}} for possible options
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
You shouldn't need to call this function yourself as all
scale objects provide a convenient method to do so automatically.  These
are the functions that start with sc.
\end{Details}
\begin{Author}\relax
Hadley Wickham <h.wickham@gmail.com>
\end{Author}
\begin{Examples}
\begin{ExampleCode}p <- ggplot(movies, aesthetics=list(x=length, y=rating))
add_scale(ggpoint(p), position_continuous('x', range=c(80,100)))\end{ExampleCode}
\end{Examples}

