\HeaderA{plotSpikeSpotError}{plot spot error of spikes.}{plotSpikeSpotError}
\keyword{hplot}{plotSpikeSpotError}
\begin{Description}\relax
Plot spot error of spikes. Three types of plots are avaible: histogram, 
boxplot and density.
\end{Description}
\begin{Usage}
\begin{verbatim}
plotSpikeSpotError(parameter, array = 1, plottype = "hist", width = 1, 
                   plotnames = NULL, main = NULL, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{parameter}] a \code{\LinkA{ParameterList}{ParameterList}} object.
\item[\code{array}] integer giving the array to be plotted. 
\item[\code{plottype}] string giving the type of plot. 
\item[\code{width}] needed for density plot. This exists for compatibility with S; 
if given, and \code{bw} is not, will set \code{bw} to \code{width}
if this is a character string, or to a kernel-dependent multiple of 
\code{width} if this is numeric. Default is 1.
\item[\code{plotnames}] needed for boxplot. group labels which will be printed 
under each boxplot. 
\item[\code{main}] an overall title for the plot.
\item[\code{...}] other parameters can be used according to the plottype user specified.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The function plots spot error of one array on different types of plots. Three types, 
which are histogram, boxplot and density function, are available now. The argument 
\code{plottype} is used for giving the plot type. It should be one of the following three 
types: "hist", "boxplot" and "dens". The argument \code{array} gives the array index to 
be plotted. 

The function accepts estimated spot error from the argument \code{parameter}.
\end{Details}
\begin{Value}
A plot is created on the current graphics device.
\end{Value}
\begin{Author}\relax
Hui Zhao
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{hist}{hist}}, \code{\LinkA{boxplot}{boxplot}}
and \code{\LinkA{plot}{plot}} in the graphics package.

\code{\LinkA{density}{density}} in the stat package.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
# load data: parameter
data(parameter)

# specify the array to be plotted.
array <- 1

# plot histogram
plotSpikeSpotError(parameter,array=array,plottype="hist")
# plot boxplot
plotSpikeSpotError(parameter,array=array,plottype="boxplot",plotnames=NULL)
# plot density function
plotSpikeSpotError(parameter,array=array,plottype="dens",width=1)

\end{ExampleCode}
\end{Examples}

