dots              package:TeachingDemos              R Documentation

_C_r_e_a_t_e _a _q_u_i_c_k _d_o_t_c_h_a_r_t (_h_i_s_t_o_g_r_a_m)

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

     Create a quick dotchart of 1 or 2 datasets.  These dotcharts are a
     poor man's histogram, not the trellis dotplot.

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

     dots(x,...)
     dots2(x, y, colx = "green", coly = "blue", lab1 =
     deparse(substitute(x)), lab2 = deparse(substitute(y)),...)

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

       x: Vector, data to be plotted (should be rounded). 

       y: Vector, second dataset to be plotted. 

    colx: Color of points for 'x'. 

    coly: Color of points for 'y'. 

    lab1: Label for 'x'.

    lab2: Label for 'y'.

     ...: Additional arguments passed to plotting functions. 

_D_e_t_a_i_l_s:

     These functions create basic dotcharts that are quick "back of the
     envelope" approximations to histograms.  Mainly intended for
     demonstration.

_V_a_l_u_e:

     No meaninful value.  These functions are run for the side effect
     of creating a plot.

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

     Greg Snow greg.snow@intermountainmail.org 

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

     'dotplot' in the lattice package, 'hist'

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

     dots( round( rnorm(50, 10,3) ) )
     dots2( round( rnorm(20, 10,3) ), round(rnorm(20,12,2)) )

