ilines {iplots} | R Documentation |
A generic function taking coordinates of points in data space and creating corresponding connected lines or polygon in the current iPlot.
ilines(x, y, col=NULL, fill=NULL, visible=NULL, plot = iplot.cur())
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 |
The point vectors x
and y
can contain NA
values,
in which case each sequence of points separated by NA
s will be
treated as a separate polygon. NA
s must be present in both
coordinates at the same index, otherwise the behavior is undefined.
Resulting iObject.
ihist
, ibar
, iplot.list
,
iobj.opt
data(iris)
attach(iris)
iplot(Sepal.Width,Petal.Width)
l<-lowess(Sepal.Width,Petal.Width)
ilines(l)