\HeaderA{ggplot.default}{Create a new plot}{ggplot.default}
\aliasA{ggplot}{ggplot.default}{ggplot}
\aliasA{package-ggplot}{ggplot.default}{package.Rdash.ggplot}
\keyword{hplot}{ggplot.default}
\begin{Description}\relax
Create a new ggplot plot
\end{Description}
\begin{Usage}
\begin{verbatim}ggplot.default(data = NULL, mapping=aes(), ...)\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{data}] default data frame
\item[\code{mapping}] default list of aesthetic mappings (these can be colour, size, shape, line type -- see individual geom functions for more details)
\item[\code{...}] 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function creates the basic ggplot object which you can then
furnish with graphical objects.  Here you will set
up the default data frame, default aesthetics and the formula that
will determine how the panels are broken apart.  See \code{\LinkA{reshape}{reshape}}
for more details on specifying the facetting formula and margin arguments.
Note that ggplot creates a plot object without a "plot": you need to
grobs (points, lines, bars, etc.) to create something that you can see.

To get started, read the introductory vignette: \code{vignette("introduction", "ggplot")}

ggplot is different from base and lattice graphics in how you build up the plot.
With ggplot you build up the plot object (rather than the plot on the screen as
in base graphics, or all at once as in lattice graphics.)

Each of the geom and scale functions adds the geom to the plot and returns
the modified plot object.  This lets you quickly experiment with different
versions of the plot, using different geoms or scales.  You can see how this
works in the examples

You can also use \code{summary} to give a quick description of a plot.

If you want to change the background colour, how the panel strips are displayed,
or any other default graphical option, see \code{\LinkA{ggopt}{ggopt}}.
\end{Details}
\begin{Author}\relax
Hadley Wickham <h.wickham@gmail.com>
\end{Author}
\begin{SeeAlso}\relax
\url{http://had.co.nz/ggplot}, \\code{\bsl{}\LinkA{stamp}{stamp}}, \\code{\bsl{}\LinkA{reshape}{reshape}}, \\code{\bsl{}\LinkA{ggopt}{ggopt}}, \\code{vignette("introduction", "ggplot")}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}\end{ExampleCode}
\end{Examples}

