You could make multiple calls to the rug function using a different color for each call. Using tapply or by may automate this for you. Another option would be to create your own rug using the segments function (which will plot multiple colors).
Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Tuesday, September 04, 2007 12:00 PM > To: r-help@stat.math.ethz.ch > Subject: [R] rug() colors > > Hello, > > I have a simple question on rug(). > Currently there is only one color possible for the rug. > Is it possible to plot a the rug with different colors, for > each rug item ? > > Thx. > Bjoern > > ______________________________________________ > R-help@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 > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@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 and provide commented, minimal, self-contained, reproducible code.