panel.number package:lattice R Documentation _A_c_c_e_s_s_i_n_g _A_u_x_i_l_i_a_r_y _I_n_f_o_r_m_a_t_i_o_n _D_u_r_i_n_g _P_l_o_t_t_i_n_g _D_e_s_c_r_i_p_t_i_o_n: Control over lattice plots are provided through a collection of user specifiable functions that perform various tasks during the plotting. Not all information is available to all functions. The functions documented here attempt to provide a consistent interface to access relevant information from within these user specified functions, namely those specified as the 'panel', 'strip' and 'axis' functions. _U_s_a_g_e: current.row() current.column() panel.number() packet.number() which.packet() trellis.currentLayout(which = c("packet", "panel")) _A_r_g_u_m_e_n_t_s: which: whether return value (a matrix) should contain panel numbers or packet numbers, which are usually, but not necessarily, the same (see below for details). _V_a_l_u_e: 'trellis.currentLayout' returns a matrix with as many rows and columns as in the layout of panels in the current plot. Entries in the matrix are integer indices indicating which packet (or panel; see below) occupies that position, with 0 indicating the absence of a panel. 'current.row' and 'current.column' return integer indices specifying which row and column in the layout are currently active. 'panel.number' returns an integer counting which panel is being drawn (starting from 1 for the first panel, a.k.a. the panel order). 'packet.number' gives the packet number according to the packet order, which is determined by varying the first conditioning variable the fastest, then the second, and so on. 'which.packet' returns the combination of levels of the conditioning variables in the form of a numeric vector as long as the number of conditioning variables, with each element an integer indexing the levels of the corresponding variable. _N_o_t_e: The availability of these functions make redundant some features available in earlier versions of lattice, namely optional arguments called 'panel.number' and 'packet.number' that were made available to 'panel' and 'strip'. If you have written such functions, it should be enough to replace instances of 'panel.number' and 'packet.number' by the corresponding function calls. You should also remove 'panel.number' and 'packet.number' from the argument list of your function to avoid a warning. If these accessor functions are not enough for your needs, feel free to contact the maintainer and ask for more. _A_u_t_h_o_r(_s): Deepayan Sarkar Deepayan.Sarkar@R-project.org _S_e_e _A_l_s_o: 'Lattice', 'xyplot'