[ top | up ]

Plot Method for Polynomials

Usage

plot(p, xs=seq(0, 1, len = 100), type = "l", ...)

Arguments

p An object of class polynomial
xs Optional specification of x values
type As for plot()
... Additional arguments as for plot()

Description

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

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

Value

As for the plot generic.

See Also

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

Examples

plot(p <- poly.from.zeros(-1:5))