powered by
lattice panel function for plotting regression line with red colour.
panel.smooth.line(x, y,...)
An object of class "trellis".
"trellis"
Variables to be plotted.
Further arguments. See corresponding entry in xyplot for non-trivial details.
xyplot
Wanchang Lin
library(lattice) data(iris) splom(~iris[,1:4], varname.cex = 1.0, pscales = 0, panel = panel.smooth.line)
Run the code above in your browser using DataLab