Learn R Programming

zoom (version 2.0.6)

zoomplot.zoom: Central low level function of the zoom package.

Description

This function allows to replot the current or a saved plot with specific boundaries, magnification factor and possibly arround a user defined x/y.

Usage

zoomplot.zoom(
  xlim = NULL,
  ylim = NULL,
  fact = NULL,
  moveX = NULL,
  moveY = NULL,
  rp = NULL,
  x = NULL,
  y = NULL,
  xlimfn = NULL,
  ylimfn = NULL,
  ...
)

Arguments

xlim

A vector with min and max x

ylim

A vector with min and max y

fact

A scalar giving the magnification factor (>1 brings you closer)

moveX

Expected shift on X axis.

moveY

Expected shift on Y axis. corresponding warnings in ?recordPlot.

rp

A previously recorded plot with recordPlot(). With all the

x

x of a fix point when rescaling, by default the center.

y

y of a fix point when rescaling, by default the center.

xlimfn

a function using x, y and/or fact to generate new x lim if NULL and xlim/ylim not given will use multipancPoint

ylimfn

a function using x, y and/or fact to generate new y lim, if NULL will use xlimfn

Additional parameters not implemented, just in case.

Value

Not guaranted for now.

Details

This function is not necessarily easy to use by hand. It is designed to work well when called from higher level functions. End user should always use zm().

See Also

zm, in.zoom

Examples

Run this code
# NOT RUN {
plot(rnorm(1000),rnorm(1000))
zoomplot.zoom(fact=2,x=0,y=0)

# }

Run the code above in your browser using DataLab