Plots polynomials, optionally allowing the ``interesting'' region to be automatically determined.

# S3 method for polynomial plot(x, xlim = 0:1, ylim = range(Px), type = "l", len = 1000, …, xlab = "x", ylab = "P(x)")

an object of class "polynomial".

"polynomial"

the range to be encompassed by the x axis.

the range to be encompassed by the y axis.

as for plot().

plot()

number of x points drawn.

additional arguments as for plot.

plot

graphical parameters.

This is a method for the generic function plot.

A plot of the polynomial is produced on the currently active device. Unless otherwise specified, the domain is chosen to enclose the real parts of all zeros, stationary points and zero itself.

plot, lines, points, lines.polynomial, points.polynomial.

lines

points

lines.polynomial

points.polynomial

# NOT RUN { plot(p <- poly.calc(-1:5)) # }

Run the code above in your browser using DataCamp Workspace