| ilines {iplots} | R Documentation |
Add connected lines or polygon to the current iPlot.
Description
A generic function taking coordinates of points in data space and creating corresponding connected lines or polygon in the current iPlot.
Usage
ilines(x, y, col=NULL, fill=NULL, visible=NULL, plot = iplot.cur())
Arguments
x, y |
Coordinate vectors of points to
join. |
col |
Drawing color of the lines. Currently only |
fill |
Color of the polygon area or |
visible |
If set to |
plot |
parent plot for the lines |
Details
The point vectors x and y can contain NA values,
in which case each sequence of points separated by NAs will be
treated as a separate polygon. NAs must be present in both
coordinates at the same index, otherwise the behavior is undefined.
Value
Resulting iObject.
See Also
ihist, ibar, iplot.list,
iobj.opt
Examples
data(iris)
attach(iris)
iplot(Sepal.Width,Petal.Width)
l<-lowess(Sepal.Width,Petal.Width)
ilines(l)