autozoom | R Documentation |
Replaces plot()
with an interactive loop which allows user to click twice
on the plot window to redraw with new limits. Press ESCAPE to finish.
autozoom(x, ..., after = NULL)
x |
Passed directly to |
... |
Passed directly to |
after |
An expression to be executed after each plot is drawn |
Click twice to set the new plot extents. If both clicks are on one of the axis (outside of the plot area) then only this axis is zoomed. Click twice on the same spot to reset the zoom to the entire plot.
Extras such as axes or legends are added using the after
argument.
## Not run: autozoom(airmiles) autozoom(faithful, cex=runif(272), after={autoaxis(3); autoaxis(4)}) autozoom(faithful, col=autocol(runif(272)), pch=16, after=autolegend('above') ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.