plot.data.frame           package:graphics           R Documentation

_P_l_o_t _M_e_t_h_o_d _f_o_r _D_a_t_a _F_r_a_m_e_s

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

     'plot.data.frame', a method for the 'plot' generic. It is designed
     for a quick look at numeric data frames.

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

     ## S3 method for class 'data.frame':
     plot(x, ...)

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

       x: object of class 'data.frame'.

     ...: further arguments to 'stripchart', 'plot.default' or 'pairs'.

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

     This is intended for data frames with _numeric_ columns. For more
     than two columns it first calls 'data.matrix' to convert the data
     frame to a numeric matrix and then calls 'pairs' to produce a
     scatterplot matrix).  This can fail and may well be inappropriate:
     for example numerical conversion of dates will lose their special
     meaning and a warning will be given.

     For a two-column data frame it plots the second column against the
     first by the most appropriate method for the first column.

     For a single numeric column it uses 'stripchart', and for other
     single-column data frames tries to find a plot method for the
     single column.

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

     'data.frame'

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

     plot(OrchardSprays[1], method="jitter")
     plot(OrchardSprays[c(4,1)])
     plot(OrchardSprays)

     plot(iris)
     plot(iris[5:4])
     plot(women)

