rlar rlar - 1 month ago 13
R Question

Can I navigate, zoom in and zoom out R plots?

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.

Answer

Not with the default plotting device as its internal model is 'static'.

There are workarounds, tough: look for example at package playwith, or at a Java-based device such as the iplots package on Simon's rforge. There are also extensions like ggobi and other on-going work (such as the Qt-based device which will in time replace ggobi) which try to make R-based graphing more dynamic.

But the main takeaway is: not, not really -- due to the way R graphics devices are designed.

Comments