You should be able to reset to the original by calling the orig.zoom()
function that read the orig "global" variable.

I've also made quite a bit of changes today (mainly for the "session" mode
that can now make nice zoom in/out even within Rstudio device).



On Tue, Sep 3, 2013 at 5:22 PM, Sebastian Gibb <notifications@github.com>wrote:

> In zoom/R/zoom.R:
>
> > +      ## zoom in (x-axis only)
> > +      "L" = { zoomplot.zoom(xlim=.zoomXlim(1.1)) },
> > +      ## zoom out (x-axis only)
> > +      "H" = { zoomplot.zoom(xlim=.zoomXlim(0.9)) },
> > +      ## zoom in (y-axis only)
> > +      "K" = { zoomplot.zoom(ylim=.zoomYlim(1.1)) },
> > +      ## zoom out (y-axis only)
> > +      "J" = { zoomplot.zoom(ylim=.zoomYlim(0.9)) },
> > +      ## move left
> > +      "Left" =, "h" = { zoomplot.zoom(xlim=.moveXlim(-0.1)) },
> > +      ## move right
> > +      "Right" =, "l" = { zoomplot.zoom(xlim=.moveXlim(+0.1)) },
> > +      ## move down
> > +      "Down" =, "j" = { zoomplot.zoom(ylim=.moveYlim(-0.1)) },
> > +      ## move up
> > +      "Up" =, "k" = { zoomplot.zoom(ylim=.moveYlim(+0.1)) },
>
> I want to add something like "r" = { reset.original.limits() },
> Do you have/know any possibility to get the original limits (xlim/ylim)?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cbarbu/R-package-zoom/pull/1/files#r6138567>
> .
>



-- 
___________________
Corentin Barbu-Covantes
(484) 843-1580
http://scholar.google.com/citations?hl=en&user=sxDMRdQAAAAJ
"For what does it profit a man to gain the whole world, and forfeit his
soul?" Mark 8:36