zoomInPlot              package:plotrix              R Documentation

_D_i_s_p_l_a_y _a _p_l_o_t _w_i_t_h _a _r_e_c_t_a_n_g_u_l_a_r _s_e_c_t_i_o_n _e_x_p_a_n_d_e_d _i_n _a_n _a_d_j_a_c_e_n_t _p_l_o_t.

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

     Display one plot on the left half of a device and an expanded
     section of that plot on the right half of the device with
     connecting lines showing the expansion.

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

      zoomInPlot(x,y=NULL,xlim=NULL,ylim=NULL,rxlim=xlim,rylim=ylim,xend=NA,
       zoomtitle=NULL,...)

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

     x,y: numeric data vectors. If 'y' is not specified, it is set
          equal to 'x' and 'x' is set to '1:length(y)'.

xlim,ylim: Limits for the initial plot.

rxlim,rylim: Limits for the expanded plot. These must be within the
          above.

    xend: Where to end the segments that indicate the expansion.
          Defaults to just left of the tick labels on the left
          ordinate.

zoomtitle: The title of the plot, display in the top center.

     ...: additional arguments passed to 'plot'.

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

     'zoomInPlot' sets up a two column layout in the current device and
     calls 'plot' to display a plot in the left column. It then draws a
     rectangle corresponding to the 'rxlim' and 'rylim' arguments and
     displays a second plot of that rectangle in the right column. It
     is currently very simple and will probably become more flexible in
     future versions.

_V_a_l_u_e:

     nil

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

     Jim Lemon

_S_e_e _A_l_s_o:

     'plot'

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

      zoomInPlot(rnorm(100),rnorm(100),rxlim=c(-1,1),rylim=c(-1,1),
       zoomtitle="Zoom In Plot")

