\HeaderA{panel.spplot}{panel and panel utility functions for spplot}{panel.spplot}
\aliasA{panel.gridplot}{panel.spplot}{panel.gridplot}
\aliasA{panel.pointsplot}{panel.spplot}{panel.pointsplot}
\aliasA{panel.ringsplot}{panel.spplot}{panel.ringsplot}
\aliasA{sp.grid}{panel.spplot}{sp.grid}
\aliasA{sp.lines}{panel.spplot}{sp.lines}
\aliasA{sp.pagefn}{panel.spplot}{sp.pagefn}
\aliasA{sp.points}{panel.spplot}{sp.points}
\aliasA{sp.polygon}{panel.spplot}{sp.polygon}
\aliasA{sp.text}{panel.spplot}{sp.text}
\aliasA{SpatialPolygonsRescale}{panel.spplot}{SpatialPolygonsRescale}
\aliasA{spplot.key}{panel.spplot}{spplot.key}
\keyword{dplot}{panel.spplot}
\begin{Description}\relax
panel functions for spplot functions, and functions that can be
useful within these panel functions
\end{Description}
\begin{Usage}
\begin{verbatim}
sp.pagefn(n)
spplot.key(sp.layout, rows = 1, cols = 1)
SpatialPolygonsRescale(obj, offset, scale = 1, fill = "black", col = "black",
        plot.grid = TRUE, ...)
sp.lines(obj, col = 1, ...)
sp.points(obj, pch = 3, ...)
sp.polygon(obj, col = 1, ...)
sp.grid(obj, col = 1, alpha = 1,...)
sp.text(loc, txt, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{n}] ignored
\item[\code{sp.layout}] list; see \LinkA{spplot}{spplot} for definition 
\item[\code{rows}] integer; panel row(s) for which the layout should be drawn 
\item[\code{cols}] integer; panel column(s) for which the layout should be drawn 
\item[\code{obj}] object of class \LinkA{SpatialPolygons-class}{SpatialPolygons.Rdash.class} for
\code{SpatialPolygonsRescale}; of class \LinkA{SpatialLines-class}{SpatialLines.Rdash.class},
\LinkA{Lines-class}{Lines.Rdash.class} or \LinkA{Line-class}{Line.Rdash.class} for \code{sp.lines} of a
class that has a \LinkA{coordinates-methods}{coordinates.Rdash.methods} for \code{sp.points}; of
class \LinkA{SpatialPolygons-class}{SpatialPolygons.Rdash.class} for \code{sp.polygon}.  When obj is
character, the actual object is retrieved by \code{get(obj)} before its
class is evaluated.  
\item[\code{offset}] offset for shifting a Rings object 
\item[\code{scale}] scale for rescaling 
\item[\code{fill}] fill color 
\item[\code{col}] line color 
\item[\code{plot.grid}] logical; plot through grid functions (TRUE), or through
traditional graphics functions (FALSE)
\item[\code{pch}] plotting character 
\item[\code{loc}] numeric vector of two elements 
\item[\code{txt}] text to be plotted 
\item[\code{alpha}] alpha (transparency) level 
\item[\code{...}] arguments passed to the underlying lattice or grid functions
\end{ldescription}
\end{Arguments}
\begin{Note}\relax
The panel functions of \LinkA{spplot}{spplot}, \code{panel.gridplot} for grids,
\code{panel.pointsplot} for points, or \code{panel.ringsplot} for lines
or rings (polygons) can be called with arguments \code{(x,y,...)}.
Customizing spplot plots can be done by extending the panel function,
or by supplying an sp.layout argument; see the documentation for
\LinkA{spplot}{spplot}.

\code{SpatialPolygonsRescale} scales and shifts an object of class
\LinkA{SpatialPolygons-class}{SpatialPolygons.Rdash.class}; this is useful e.g. for scale bars, or other
layout items.

\code{sp.lines}, \code{sp.points}, \code{sp.polygon} and \code{sp.text}
plot lines, points, rings or text in a panel.

\code{spplot.key} draws the \code{sp.layout} object at given rows/cols.

\code{sp.pagefn} can be passed as a \code{page} argument, and will
call function \code{spplot.key} for the last panel drawn on a page.
\end{Note}
\begin{Author}\relax
Edzer J. Pebesma, \email{e.pebesma@geo.uu.nl}
\end{Author}
\begin{References}\relax
\url{http://r-spatial.sourceforge.net/} has a graph gallery with
examples with R code.
\end{References}
\begin{SeeAlso}\relax
\LinkA{spplot}{spplot}, \LinkA{spplot-methods}{spplot.Rdash.methods}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}

\end{ExampleCode}
\end{Examples}

