[R] multiple lowess line in one plot

hadley wickham h.wickham at gmail.com
Wed Jan 4 22:51:23 CET 2006


> xyplot( Murder ~ Frost, groups=Region, data=tmp.state,
>         panel.groups=function(...){panel.loess(...);panel.xyplot(...)}
> ,span=.8)

or more simply (but with less control over options)

xyplot( Murder ~ Frost, groups=Region, data=tmp.state, type=c("p","smooth"))

Hadley




More information about the R-help mailing list