zoom                 package:IDPmisc                 R Documentation

_Z_o_o_m_i_n_g _i_n _a_n_d _o_u_t _i_n _a _2_d-_P_l_o_t

_D_e_s_c_r_i_p_t_i_o_n:

     Function to zoom in and out in a 2D-plot.

_U_s_a_g_e:

     zoom(fun = usa, zoom.col = "red", delay = 3, ...)

_A_r_g_u_m_e_n_t_s:

     fun: Plotting function

zoom.col: Color of clicked points

   delay: Number of sec during which the 2nd zooming point is shown
          before zooming

     ...: Aditional arguments for plotting function

_D_e_t_a_i_l_s:

     When the clicked points lay within the plot region range, the
     points define the new plotting limits. When the clicked points lay
     in the margin,  the plotting limits will be moved into the
     corresponding direction by 1/3 out of the actual range. There is
     no special sequential order for the zooming points required. The
     zooming function is stopped by right clicking and choosing the
     menu item "stop".

_A_u_t_h_o_r(_s):

     Rene Locher

_E_x_a_m_p_l_e_s:

     x <- 1:100
     y <- x*sin(x*(pi/16))
     y <- c(rev(y),y)

     if(dev.interactive())
        zoom(fun=plot, ty="l", x=y)

