Learn R Programming

mt (version 2.0-1.20)

panel.smooth.line: Panel Function for Plotting Regression Line

Description

lattice panel function for plotting regression line with red colour.

Usage

panel.smooth.line(x, y,...)

Value

An object of class "trellis".

Arguments

x, y

Variables to be plotted.

...

Further arguments. See corresponding entry in xyplot for non-trivial details.

Author

Wanchang Lin

Examples

Run this code
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