home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / coplot < prev    next >
Encoding:
Text File  |  1997-04-23  |  2.8 KB  |  81 lines

  1.     
  2.     _C_o_n_d_i_t_i_o_n_i_n_g _P_l_o_t_s
  3.     
  4.          coplot(formula, data, given.values, rows, columns,
  5.                  show.given=TRUE, col=par("fg"), pch=par("pch"), ...)
  6.          co.intervals(x, number=6, overlap=0.5)
  7.     
  8.     _A_r_g_u_m_e_n_t_s:
  9.     
  10.          formula : a formula describing the form of conditioning
  11.                    plot.  A formula of the form y~x|a indicates
  12.                    that plots of y versus x should be produced
  13.                    conditional on the variable.  A formula of
  14.                    the form y~x|a*b indicates that plots of y
  15.                    versus x should be produced conditional on
  16.                    the two variables a and b.  x and lang(y)
  17.                    must be numeric, but a and b may be either
  18.                    numeric or factors.
  19.     
  20.             data : a data frame containing values for any vari-
  21.                    ables in the formula.  By default the
  22.                    environment where coplot was called from is
  23.                    used.
  24.     
  25.     given.values : a value or list of two values which determine
  26.                    how the conditioning on a and b is to take
  27.                    place. Usually this is a matrix with two
  28.                    columns which each row of which gives and
  29.                    interval, to be conditioned on, but is can
  30.                    also be a single vector of numbers or a set
  31.                    of factor levels (if the variable being con-
  32.                    ditioned on is a factor).
  33.     
  34.            panel : a function which gives the action to be car-
  35.                    ried out in each panel of the display.  The
  36.                    default is points.
  37.     
  38.             rows : the panels of the plot are laid out in a rows
  39.                    by columns array.  rows gives the number of
  40.                    rows in the array.
  41.     
  42.          columns : the number of columns in the panel layout
  43.                    array.
  44.     
  45.       show.given : should conditioning plots be shown for the
  46.                    conditioning variables (default true)
  47.     
  48.              col : a vector of colors to be ised to plot the
  49.                    points.  If too short, the values are recy-
  50.                    cled.
  51.     
  52.              pch : a vector of plotting symbols or characters.
  53.                    If too short, the values are recycyled.
  54.     
  55.           number : the number conditioning intervals.
  56.     
  57.          overlap : the fraction of overlap of the conditioning
  58.                    variables.
  59.     
  60.     _D_e_s_c_r_i_p_t_i_o_n:
  61.     
  62.          This function produces two variants of the conditioning
  63.          plots discussed in the reference.
  64.     
  65.     _R_e_f_e_r_e_n_c_e_s:
  66.     
  67.          Cleveland, W. S. (1993).  Visualizing Data.  New Jer-
  68.          sey: Summit Press.
  69.     
  70.     _S_e_e _A_l_s_o:
  71.     
  72.          pairs, panel.smooth, points.
  73.     
  74.     _E_x_a_m_p_l_e_s:
  75.     
  76.          # Tonga Trench Earthquakes
  77.          data(quakes)
  78.          coplot(long ~ lat |depth, data=quakes)
  79.          coplot(long ~ lat | depth * mag, data=quakes)
  80.     
  81.