[R] patterned non-random jitter

Jim Lemon jim at bitwrit.com.au
Sat Apr 16 13:45:54 CEST 2011

On 04/16/2011 06:30 AM, Daryl Morris wrote:
> Hi,
> Is there a function somewhere that does a "patterned" jitter of data?
> I've googled and the problem is that I don't know what to google for.
> The setting is in grouped data. I have plots which overlay jittered
> points on a boxplot. I simply jitter the "x-value", and the "y-value"
> has no effect.
> Scientists I work with frequently show plots made by another software
> where the jitter looks like a bunch smiles stacked on top of each other.
> The jitter isn't random, but instead depends on the "y-value" somehow.
Hi Daryl,
have a look at the code for the cluster.overplot and brkdn.plot 
functions in the plotrix package. These functions offset the points by 
regular intervals to avoid overplotting.


More information about the R-help mailing list