plotMeans               package:Rcmdr               R Documentation

_P_l_o_t _M_e_a_n_s _f_o_r _O_n_e _o_r _T_w_o-_W_a_y _L_a_y_o_u_t

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

     Plots cell means for a numeric variable in each category of a
     factor or in each combination of categories of two factors,
     optionally along with error bars based on cell standard errors or
     standard deviations.

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

     plotMeans(response, factor1, factor2, error.bars = c("se", "sd", "conf.int", "none"), level=0.95,
         xlab = deparse(substitute(factor1)), ylab = paste("mean of", deparse(substitute(response))), 
         legend.lab = deparse(substitute(factor2)), main = "Plot of Means", 
         pch = 1:n.levs.2, lty = 1:n.levs.2, col = palette())

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

response: Numeric variable for which means are to be computed.

 factor1: Factor defining horizontal axis of the plot.

 factor2: If present, factor defining profiles of means

error.bars: If '"se"', the default, error bars around means give plus
          or minus one standard error of the mean; if '"sd"', error
          bars give plus or minus one standard deviation; if
          '"conf.int"', error bars give a confidence interval around
          each mean; if '"none"', error bars are suppressed.

   level: level of confidence for confidence intervals; default is .95

    xlab: Label for horizontal axis.

    ylab: Label for vertical axis.

legend.lab: Label for legend.

    main: Label for the graph.

     pch: Plotting characters for profiles of means.

     lty: Line types for profiles of means.

     col: Colours for profiles of means

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

     The function invisibly returns 'NULL'.

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

     John Fox jfox@mcmaster.ca

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

     'interaction.plot'

