
Last chance! 50% off unlimited learning
Sale ends in
x, y
coordinates.ezplot(f, a, b, n = 101, col = "blue",
grid = TRUE, gridcol = "gray", fill = FALSE, fillcol = "lightgray",
xlab = "x", ylab = "f (x)", main = "Function Plot", ...)
TRUE
.FALSE
.x
-axis.y
-axis.plot
.NULL
.x, y
coordinates of points to be plotted and
calls the plot
function. If fill
is TRUE
, also calls the polygon
function
with the x, y
coordinates in appropriate order.
curve
fun <- function(x) x * cos(0.1*exp(x)) * sin(0.1*pi*exp(x))
ezplot(fun, 0, 5, n = 1001, fill = TRUE)
Run the code above in your browser using DataLab