I would like to know if R allows to pan and zoom images produced with the "plot" function. I would like to obtain the plot transformation using the mouse and not through the command line, is it possible?
Thanks in advance.
Zooming a Region The keyboard shortcut for zooming a pane is often the same as for moving to the pane, plus the Shift key. So, Ctrl+Shift+2 will zoom the Console; use the same sequence to un-zoom the Console and restore the prior layout.
Method 1: Ctrl + Zoom to select region on graph and then copy layer. (on Tools toolbar docked at the left-hand side of the workspace). Press Ctrl key and drag out a rectangle area on the graph. It will create an enlarged graph.
It's a bit old question but for future references, I've wrote a package doing precisely that (based on zoomplot {in pkg:TeachingDemos}). It's called zoom:
The CRAN page on zoom
And you are welcome to check the latest and greatest and expand the package on Github
Usage -
library(zoom) # Invoke the Library # Call plot zm()
The instructions for Usage in a normal plot is
Mouse:
Keyboard:
q on the graphic window to quit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With