Re: [R] Graphics question: How to create a changing "smudge factor" for overlapping lines?

From: Hadley Wickham <>
Date: Tue, 15 Jun 2010 08:46:10 -0500

> The glitches are the cases where you would have a bundle of lines belonging
> to a specific cluster, but had spaces between them (because the place of one
> of the lines was saved for another line that in the meantime moved to
> another cluster).

I think that display looked just fine!

> I just came up with a solution for how to resolve this (After showering, it
> tends to help my thinking...) - it is attached at the bottom of this e-mail.
> I will later cleanup the code a bit and publish it.

I'd also suggest reordering the lines within each cluster mean so that (e.g.) all the lines going from 1a to 2a are all in the same position (i.e. at the top of the bundle of lines, not interspersed throughout).

And again, think about using the colour for something useful, maybe the value of the variable that you're averaging over to get the y position.


Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 15 Jun 2010 - 13:53:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 Jun 2010 - 14:20:31 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive