Description Usage Arguments Details Value Author(s) See Also Examples
Plot spot error of spikes. Three types of plots are avaible: histogram, boxplot and density.
1 2 |
parameter |
a
|
array |
integer giving the array to be plotted. |
plottype |
string giving the type of plot. |
width |
needed for density plot. This exists for compatibility with S;
if given, and |
plotnames |
needed for boxplot. group labels which will be printed under each boxplot. |
main |
an overall title for the plot. |
... |
other parameters can be used according to the plottype user specified. |
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
plottype
is used for giving the plot type. It should be one of the following three
types: "hist", "boxplot" and "dens". The argument array
gives the array index to
be plotted.
The function accepts estimated spot error from the argument parameter
.
A plot is created on the current graphics device.
Hui Zhao
hist
, boxplot
and plot
in the graphics package.
density
in the stats package.
1 2 3 4 5 6 7 8 9 10 11 12 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.