gcurve | R Documentation |
Draws a curve corresponding to a function over the interval [from, to]
.
gcurve
can plot also an expression in the variable xname
,
default x
.
gcurve(
expr,
from = NULL,
to = NULL,
n = 101,
add = FALSE,
type = "l",
xname = "x",
xlab = xname,
ylab = NULL,
log = NULL,
xlim = NULL,
...,
grid = TRUE,
col.grid = "grey90",
col.acc = "white"
)
## S3 method for class ''function''
gplot(
x,
y = 0,
to = 1,
from = y,
xlim = NULL,
ylab = NULL,
grid = TRUE,
col.grid = "grey90",
col.acc = "white",
...
)
expr |
The name of a function, or a call or an
expression written as a function of |
from, to |
the range over which the function will be plotted. |
n |
integer; the number of x values at which to evaluate. |
add |
logical; if |
type |
plot type: see |
xname |
character string giving the name to be used for the x axis. |
xlim |
|
grid |
logical; if |
col.grid |
|
col.acc |
|
x |
a ‘vectorizing’ numeric R function. |
y |
alias for |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.