Skip to content
Back to formatted view

Raw Message

Message-ID: <513F816A.9080208@ucalgary.ca>
Date: 2013-03-12T19:26:34Z
From: Peter Ehlers
Subject: funtion equivalent of jitter to move figures on device
In-Reply-To: <63F107BCC37AEA49A75FD94AA3E07CB004AFDB00@pacpbsex01.pac.dfo-mpo.ca>

On 2013-03-12 08:04, Folkes, Michael wrote:
> hello all,
> I'm overlaying numerous scatter plots onto a map (done in PBSmodelling). In this case I'm placing each plot by setting par(fig) to the centroid of map polygons. The location/mapping part is not so important. There are cases of small overlaps for some plots (ie figures) so I'm keen to write or find a function that moves my small scatter plots so they don't overlap. A little like jitter, but not random in behaviour, it needs to move away from the plots it's overlapping.
>
> thanks to all
> Michael
> _______________________________________________________
> Michael Folkes
> Salmon Stock Assessment
> Canadian Dept. of Fisheries & Oceans
> Pacific Biological Station
>

I would investigate the subplot() function in Greg Snow's
TeachingDemos package, possibly in conjunction with his
updateusr() function.

For interactive placement of figures, it should be possible to
use locator() to place each plot.

Peter Ehlers