Learn R Programming

cwhmisc (version 2.1)

lowess.bygroup: Plot data in groups, each with lowess or loess smoothing

Description

data in groups (shown by variable group) are plotted

Usage

lowess.bygroup(x, y, group, lin=FALSE, col = par("col"), bg = NA,
 pch = par("pch"), cex = 1, ...)
loess.bygroup(x, y, group, lin=FALSE, col = par("col"), bg = NA,
 pch = par("pch"), cex = 1, ...)

Arguments

x, y
coordinate vectors of equal length
group
grouping variable, must be a vector of same length as x and y
lin
If TRUE, then lines connecting the points (x,y) are drawn
cex
see par
col
colour of lines
bg
background colour
pch
character to plot
...
see pairs

Value

  • The procedure is called for its side effect of producing a plot