gplot | R Documentation |
Generic plotting for R
objects with default grid background. For
simple scatter plots, plot.default
will be used. However,
there are plot
methods for many R
objects including
functions
, data.frames
,
density
objects, etc. Use methods(gplot)
and the
documentation for these.
gplot(x, y, ...)
## Default S3 method:
gplot(x, y = NULL, type = "p", xlim = NULL,
ylim = NULL, log = "", main = NULL, sub = NULL, xlab = NULL,
ylab = NULL, ann = par("ann"), axes = TRUE, frame.plot = axes,
panel.first = NULL, panel.last = NULL, asp = NA, ..., grid = TRUE,
bty = "n", col.grid = "grey90", col.acc = "white",
col.axis = "grey50", col.ticks = col.axis)
## S3 method for class 'data.frame'
gplot(x, grid = TRUE, col.grid = "grey90",
col.acc = "white", ...)
x |
the coordinates of points in the plot. Alternatively, a
single plotting structure, function or any R object with a
|
y |
the y coordinates of points in the plot, optional
if |
... |
Arguments to be passed to methods, such as
graphical parameters (see
|
grid |
logical; if |
col.grid |
|
col.acc |
|
gplot(1:10)
gplot(mtcars)
gplot(mpg ~ wt, data = mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.