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
greg.snow at intermountainmail.org
(801) 408-8111
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of
> strinz at freenet.de
> Sent: Tuesday, September 04, 2007 12:00 PM
> To: r-help at 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 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
> and provide commented, minimal, self-contained, reproducible code.
>