home *** CD-ROM | disk | FTP | other *** search
-
- _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
-
- plot.default(x, y, type="p", col=par("fg"), pch=par("pch"),
- xlim=NULL, ylim=NULL, log="", axes=TRUE,
- frame.plot=TRUE, before=NULL, after=NULL,
- ann=par("ann"), main=NULL, xlab=NULL, ylab=NULL, ...)
-
- _A_r_g_u_m_e_n_t_s:
-
- x,y : the x and y arguments provide the x and y
- coordinates for the plot. Any reasonble way
- of defining the coordinates is acceptable.
- See the function xy.coords for details.
-
- type : the type of plot desired. The following pos-
- sibilities are possible; "p" for points, "l"
- for lines, "o" for overplotted points and
- lines, "b" or c for points joined by lines, s
- and S for step functions and "h" for high
- density vertical lines.
-
- col : The colors for lines and points. Multiple
- colors can be specified so that each point
- can be given its own color. If there are
- fewer colors than points they are recycled in
- the standard fashion.
-
- pch : a vector of plotting characters or symbols.
-
- xlim : the x limits of the plot.
-
- ylim : the y limits of the plot.
-
- log : a character string which contains "x" if the
- x axis is to be logarithmic, "y" if the y
- axis is to be logarithmic and "xy" or "yx" if
- both axes are to be logarithmic.
-
- axes : a logical value indicating whether axes
- should be drawn on the plot.
-
- frame.plot : a logical indicating whether a box should be
- drawn around the plot.
-
- before : an expression to be evaluated after the plot
- axes are set up but before any plotting takes
- place. This can be useful for drawing back-
- ground grids or scatterplot smooths.
-
- after : an expression to be evaluated after plotting
- has taken place.
-
- ann : an logical value indicating whether the
- default annotation (title and x and y axis
- labels) should appear on the plot (default
- TRUE).
-
- main : a main title for the plot.
-
- xlab : a label for the x axis.
-
- ylab : a label for the y axis.
-
- ... : graphical parameters may also be passed as
- arguments.
-
- _V_a_l_u_e:
-
- This function is invoked for its side effect of drawing
- a scatter plot in the active graphics window.
-
- _R_e_f_e_r_e_n_c_e_s:
-
- Cleveland, W. S. (1985). The Elements of Graphing
- Data, Monterey, CA: Wadsworth.
-
- _S_e_e _A_l_s_o:
-
- plot, xy.coords.
-
- _E_x_a_m_p_l_e_s:
-
- data(cars)
- Speed <- cars$speed
- Distance <- cars$dist
- plot(Speed, Distance, before=grid(8,8),
- pch=0, cex=1.2, col="blue")
- plot(Speed, Distance,
- before=lines(lowess(Speed, Distance), lty="dashed"),
- pch=0, cex=1.2, col="blue")
-
-