plotBins                package:HELP                R Documentation

_P_l_o_t _b_i_n_s

_D_e_s_c_r_i_p_t_i_o_n:

     Plot densities of multiple bins of data, divided by a sliding
     window approach

_U_s_a_g_e:

     plotBins(x, y, ...)

_A_r_g_u_m_e_n_t_s:

       x: the vector of numerical data to be plotted. If 'x' is a
          matrix it is interpreted as a vector. 'x' can also be of
          class '"ExpressionSet"'. 

       y: an additional vector of numerical data to be used for
          binning. If 'y' is a matrix it is interpreted as a vector.
          'y' can also be of class '"ExpressionSet"'.

     ...: Arguments to be passed to methods (see 'plotBins-methods'):

     '_e_l_e_m_e_n_t' which element of 'AssayData' to use for a given
          'ExpressionSet' input (default is '"exprs"') 

     '_s_a_m_p_l_e' which element of 'sampleNames' to use as data (default is
          1). Can be a character matching a sample name or simply an
          integer indicating which sample to choose. See 'getSamples'. 

     '_f_e_a_t_u_r_e' which element of 'featureData' to use as binning
          variable (default is 1). Can be a character matching
          'varLabel' or simply an integer indicating which feature to
          choose. See 'getFeatures'.

     '_n_u_m._b_i_n_s' number of bins (default is 10) used to divide the data 

     '_n_u_m._s_t_e_p_s' number of steps (default is 3) used to create bin
          offsets, resulting in bins of sliding windows 

     '_m_o_d_e' the binning mode to be used. This must be either
          '"continuous"' or '"discrete"'. '"continuous"' mode will
          divide the data into density-dependent bins.  '"discrete"'
          mode will divide the data uniformly by binning data values. 

     '_s_h_o_w._a_v_g' logical; if 'TRUE', plots overall density in addition
          to densities per bin. If 'FALSE' (default), overall density
          plot is omitted. 

     '_m_a_i_n' an overall title for the plot: see 'title'. 

     '_x_l_a_b' a title for the x axis: see 'title'. 

     '_y_l_a_b' a title for the y axis: see 'title'. 

     '_n_a._r_m' logical; if 'TRUE' (default), missing values are removed
          from x and y. If 'FALSE' any missing values cause an error.

     '...' other arguments to be passed to 'plot'. See 'plot'. 

_A_u_t_h_o_r(_s):

     Reid F. Thompson (rthompso@aecom.yu.edu)

_S_e_e _A_l_s_o:

     'plotBins-methods', 'density', 'quantile'

_E_x_a_m_p_l_e_s:

     #demo(pipeline,package="HELP")

     x <- 1:1000
     y <- sample(1:50,size=1000,replace=TRUE)
     plotBins(x,y,show.avg=TRUE,main="Random binning data",xlab="1:1000")

     #rm(x,y)

