[R] multiple lowess line in one plot

Austin, Matt maustin at amgen.com
Wed Jan 4 19:41:18 CET 2006


Try using the panel.plsmo function in Dr. Harrell's Hmisc package.

xyplot(AWGT ~ lipid, groups = var_name, panel=panel.plsmo)

--Matt

Matt Austin

Statistician
Amgen, Inc.

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Dean Sonneborn
Sent: Wednesday, January 04, 2006 8:54 AM
To: r-help at stat.math.ethz.ch
Subject: [R] multiple lowess line in one plot


I'm using this code to plot a smoothed line.  These two columns of data 
really represent 4 groups and I'd like to plot a separate line for each 
group but have them all in the same plot. The R-Docs for lowess do not 
seem to indicate some type of "GROUPS=var_name" option. What would be 
the syntax for this?

plot(AWGT ~ lipid )
lines(lowess(lipid , AWGT, f=.8))


-- 
Dean Sonneborn, MS
Programmer Analyst
Department of Public Health Sciences
University of California, Davis
(530) 754-9516

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html




More information about the R-help mailing list