On Wed, May 12, 2010 at 3:24 AM, Marius Hofert <m_hof...@web.de> wrote: > Dear R experts, > > Is there an easy way how to combine the black dots (i.e., the medians) in the > bwplot > > bwplot(voice.part ~ height, data=singer, xlab="Height (inches)") > > by a smooth curve?
Depends on what you mean by "smooth". bwplot(voice.part ~ height, data=singer, xlab="Height (inches)", panel = function(...) { panel.bwplot(...) panel.average(..., fun = median, col.line = "darkgrey") }) Something more smooth is also possible, but will be misleading. -Deepayan ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.