grid_barplot               package:vcd               R Documentation

_B_a_r_p_l_o_t

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

     Barplots of 1-way tables in grid.

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

     grid_barplot(height, width = 0.8, offset = 0,
       names = NULL, xlim = NULL, ylim = NULL, xlab = "", ylab = "", main = "",
       gp = gpar(fill = "lightgray"), name = "grid_barplot",
       newpage = TRUE, pop = FALSE)

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

  height: either a vector or a 1-way table of frequencies.

   width: width of the bars (recycled if needed to the number of bars).

  offset: offset of the bars (recycled if needed to the number of
          bars).

   names: a vector of names for the bars, if set to 'NULL' the names of
          'height' are used.

    xlim: limits for the x axis.

    ylim: limits for the y axis.

    xlab: a label for the x axis.

    ylab: a label for the y axis.

    main: a title for the plot.

      gp: a '"gpar"' object controlling the grid graphical parameters
          of the rectangles.

    name: name of the plotting viewport.

 newpage: logical. Should 'grid.newpage' be called  before plotting?

     pop: logical. Should the viewport created be popped?

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

     'grid_barplot' mimics (some of) the features of 'barplot', but
     currently it only supports 1-way tables.

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

     Achim Zeileis Achim.Zeileis@R-project.org

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

     grid_barplot(sample(1:6), names = letters[1:6])

