R Magnifying glass effect

Is there an increase function in r? I have a graph with a lot of information, and I was wondering if there is a way to expand the area around the mouse.

+4
source share
4 answers

Here are many half answers:

  • RStudio supports scaling for existing graphics
  • You can set xlim and ylim to a plot that has already been made (it is assumed that the graph did not take much time to generate), for example. plot(1:10, xlim = c(3,5), ylim = c(4,6))
  • You can save your schedule on a scalable device and enlarge another program, ala pdf() .
  • See the getGraphicsEvent() man page. It may be platform dependent, but the code there describes it to some extent.

Probably, some new things in works based on Qt and / or RGGobi may be possible.

+5
source

There's also iplots extreme, aka Acinonyx, which is available on R-forge. Its still a little experimental and may cause a crash in your R session. It has scaling and layout capabilities.

+2
source

I think iPlots is your best bet. Support for dynamic scaling (i.e. click and drag the zoom boxes). I tried using Acinonyx and had a lot of error problems.

+2
source

The TeachingDemos package has a zoomplot function that will redraw the current graph using the new xlim and ylim , the examples section shows the use of this locator function so that you can click on 2 points in the current plot and ask him to repeat only this section (enlarged).

+1
source

Source: https://habr.com/ru/post/1387284/


All Articles