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)

