Returns a data.frame associated with a call to base::curve.
Usage
gcurve(
expr,
from = NULL,
to = NULL,
n = 101,
add = FALSE,
type = "l",
xname = "x",
xlab = xname,
ylab = NULL,
log = NULL,
xlim = NULL,
category = NULL,
...
)
Value
A data.frame is returned with x and y-values and an optional column called category
Arguments
expr
expression to be plotted
from
lower bound of x-values
to
upper bound of x-values
n
number of points to plot
add
logical; if TRUE add to an already existing plot; if NA start a new plot taking the defaults for the limits and log-scaling of the x-axis from the previous plot. Taken as FALSE (with a warning if a different value is supplied) if no graphics device is open.
type
plot type: see plot.default.
xname
character string giving the name to be used for the x axis
xlab
labels and graphical parameters can also be specified as arguments.
ylab
For the "function" method of plot, ... can include any of the other arguments of curve, except expr
log
For the "function" method of plot, ... can include any of the other arguments of curve, except expr
xlim
NULL or a numeric vector of length 2; if non-NULL it provides the defaults for c(from, to) and, unless add = TRUE, selects the x-limits of the plot – see plot.window.
category
optional text column appends to data.frame returned