powered by
x, y
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
y
plot
NULL
If fill is TRUE, also calls the polygon function with the x, y coordinates in appropriate order.
fill
polygon
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