[R] Zoom in in a plot
Duncan Murdoch
murdoch.duncan at gmail.com
Tue Oct 26 18:21:01 CEST 2010
On 26/10/2010 11:30 AM, Alaios wrote:
> in a simple plot. When i do plot is it possible to zoom in or out or this is not
> possible at all?
There's no general support for that, but you could conceivably write it
yourself using getGraphicsEvent. The example code there adjusts xlim
and ylim according to mouse movements. It works reasonably well in
Windows or the device in the cairoDevice package, and is sometimes
acceptable in X11. Other devices don't have the necessary support for it.
Duncan Murdoch
More information about the R-help
mailing list