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 / plotdefault < prev    next >
Encoding:
Text File  |  1997-04-23  |  3.1 KB  |  93 lines

  1.     
  2.     _T_h_e _D_e_f_a_u_l_t _S_c_a_t_t_e_r_p_l_o_t _F_u_n_c_t_i_o_n
  3.     
  4.          plot.default(x, y, type="p", col=par("fg"), pch=par("pch"),
  5.              xlim=NULL, ylim=NULL, log="", axes=TRUE,
  6.              frame.plot=TRUE, before=NULL, after=NULL,
  7.              ann=par("ann"), main=NULL, xlab=NULL, ylab=NULL, ...)
  8.     
  9.     _A_r_g_u_m_e_n_t_s:
  10.     
  11.              x,y : the x and y arguments provide the x and y
  12.                    coordinates for the plot. Any reasonble way
  13.                    of defining the coordinates is acceptable.
  14.                    See the function xy.coords for details.
  15.     
  16.             type : the type of plot desired.  The following pos-
  17.                    sibilities are possible; "p" for points, "l"
  18.                    for lines, "o" for overplotted points and
  19.                    lines, "b" or c for points joined by lines, s
  20.                    and S for step functions and "h" for high
  21.                    density vertical lines.
  22.     
  23.              col : The colors for lines and points.  Multiple
  24.                    colors can be specified so that each point
  25.                    can be given its own color.  If there are
  26.                    fewer colors than points they are recycled in
  27.                    the standard fashion.
  28.     
  29.              pch : a vector of plotting characters or symbols.
  30.     
  31.             xlim : the x limits of the plot.
  32.     
  33.             ylim : the y limits of the plot.
  34.     
  35.              log : a character string which contains "x" if the
  36.                    x axis is to be logarithmic, "y" if the y
  37.                    axis is to be logarithmic and "xy" or "yx" if
  38.                    both axes are to be logarithmic.
  39.     
  40.             axes : a logical value indicating whether axes
  41.                    should be drawn on the plot.
  42.     
  43.       frame.plot : a logical indicating whether a box should be
  44.                    drawn around the plot.
  45.     
  46.           before : an expression to be evaluated after the plot
  47.                    axes are set up but before any plotting takes
  48.                    place.  This can be useful for drawing back-
  49.                    ground grids or scatterplot smooths.
  50.     
  51.            after : an expression to be evaluated after plotting
  52.                    has taken place.
  53.     
  54.              ann : an logical value indicating whether the
  55.                    default annotation (title and x and y axis
  56.                    labels) should appear on the plot (default
  57.                    TRUE).
  58.     
  59.             main : a main title for the plot.
  60.     
  61.             xlab : a label for the x axis.
  62.     
  63.             ylab : a label for the y axis.
  64.     
  65.              ... : graphical parameters may also be passed as
  66.                    arguments.
  67.     
  68.     _V_a_l_u_e:
  69.     
  70.          This function is invoked for its side effect of drawing
  71.          a scatter plot in the active graphics window.
  72.     
  73.     _R_e_f_e_r_e_n_c_e_s:
  74.     
  75.          Cleveland, W. S. (1985).  The Elements of Graphing
  76.          Data, Monterey, CA: Wadsworth.
  77.     
  78.     _S_e_e _A_l_s_o:
  79.     
  80.          plot, xy.coords.
  81.     
  82.     _E_x_a_m_p_l_e_s:
  83.     
  84.          data(cars)
  85.          Speed <- cars$speed
  86.          Distance <- cars$dist
  87.          plot(Speed, Distance, before=grid(8,8),
  88.              pch=0, cex=1.2, col="blue")
  89.          plot(Speed, Distance,
  90.              before=lines(lowess(Speed, Distance), lty="dashed"),
  91.              pch=0, cex=1.2, col="blue")
  92.     
  93.