banking package:lattice R Documentation _B_a_n_k_i_n_g _D_e_s_c_r_i_p_t_i_o_n: Calculates banking slope _U_s_a_g_e: banking(dx, dy) _A_r_g_u_m_e_n_t_s: dx, dy: vector of consecutive x, y differences. _D_e_t_a_i_l_s: 'banking' is the banking function used when 'aspect = "xy"' in high level Trellis functions. It is usually not very meaningful except with 'xyplot'. It considers the absolute slopes (based on 'dx' and 'dy') and returns a value which when adjusted by the panel scale limits will make the median of the above absolute slopes correspond to a 45 degree line. This function was inspired by the discussion of banking in the documentation for Trellis Graphics available at Bell Labs' website (see 'Lattice'), but is most likely identical to an algorithm described by Cleveland et al (see below). It is not clear (to the author) whether this is the algorithm used in S-PLUS. Alternative banking rules, implemented as a similar function, can be used as a drop-in replacement by suitably modifying 'lattice.options("banking")'. _A_u_t_h_o_r(_s): Deepayan Sarkar Deepayan.Sarkar@R-project.org _R_e_f_e_r_e_n_c_e_s: Cleveland, William S., McGill, Marylyn E. and McGill, Robert (1988), "The Shape Parameter of a Two-variable Graph", _Journal of the American Statistical Association_, 83, 289-300 _S_e_e _A_l_s_o: 'Lattice', 'xyplot' _E_x_a_m_p_l_e_s: xyplot(sunspot.year ~ time(sunspot.year) | equal.count(time(sunspot.year)), xlab = "", type = "l", aspect = "xy", strip = FALSE, scales = list(x = list(alternating = 2, relation = "sliced")), as.table = TRUE, main = "Yearly Sunspots")