plot.table               package:base               R Documentation

_P_l_o_t _M_e_t_h_o_d_s _f_o_r `_t_a_b_l_e' _O_b_j_e_c_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     This is a method of the generic `plot' function for (contingency)
     `table' objects.  Whereas for two- and more dimensional tables, a
     `mosaicplot' is drawn, one-dimensional ones are plotted ``bar
     like''.

_U_s_a_g_e:

     plot.table(x, type = "h", ylim = c(0, max(x)), lwd = 2,
                xlab = NULL, ylab = deparse(substitute(x)), frame.plot = is.num, ...)

_A_r_g_u_m_e_n_t_s:

       x: a `table' (like) object.

    type: plotting type.

    ylim: range of y-axis.

     lwd: line width of bars when `type = "h"' is used.

xlab,ylab: x- and y-axis labels.

    ylab: ~~Describe `ylab' here~~ 

frame.plot: logical indicating if a frame (`box') should be drawn. 
          Default are ~~Describe `frame.plot' here~~ 

     ...: further graphical arguments, see `plot.default'.

_D_e_t_a_i_l_s:

     The current implementation (R 1.2) is somewhat experimental and
     will be improved and extended.

_S_e_e _A_l_s_o:

     `plot.factor', the `plot' method for factors.

_E_x_a_m_p_l_e_s:

     ## 1-d tables
     (Poiss.tab <- table(N = rpois(200, lam= 5)))
     plot(Poiss.tab, main = "plot(table(rpois(200, lam=5)))")

     data(state)
     plot(table(state.division))

     ## 4-D :
     data(Titanic)
     plot(Titanic, main ="plot(Titanic, main= *)")

