Skip to content

rug() colors

2 messages · strinz at freenet.de, Greg Snow

#
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
1 day later
#
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,