plotSpikeSpotError           package:CALIB           R Documentation

_p_l_o_t _s_p_o_t _e_r_r_o_r _o_f _s_p_i_k_e_s.

_D_e_s_c_r_i_p_t_i_o_n:

     Plot spot error of spikes. Three types of plots are avaible:
     histogram,  boxplot and density.

_U_s_a_g_e:

     plotSpikeSpotError(parameter, array = 1, plottype = "hist", width = 1, 
                        plotnames = NULL, main = NULL, ...)

_A_r_g_u_m_e_n_t_s:

parameter: a 'ParameterList' object.

   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 'bw' is not, will set 'bw' to 'width' if
          this is a character string, or to a kernel-dependent multiple
          of  'width' if this is numeric. Default is 1.

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.

_D_e_t_a_i_l_s:

     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'.

_V_a_l_u_e:

     A plot is created on the current graphics device.

_A_u_t_h_o_r(_s):

     Hui Zhao

_S_e_e _A_l_s_o:

     'hist', 'boxplot' and 'plot' in the graphics package.

     'density' in the stat package.

_E_x_a_m_p_l_e_s:

     # 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)

