convertXY package:graphics R Documentation _C_o_n_v_e_r_t _b_e_t_w_e_e_n _G_r_a_p_h_i_c_s _C_o_o_r_d_i_n_a_t_e _S_y_s_t_e_m_s _D_e_s_c_r_i_p_t_i_o_n: Convert between graphics coordinate systems. _U_s_a_g_e: grconvertX(x, from = "user", to = "user") grconvertY(y, from = "user", to = "user") _A_r_g_u_m_e_n_t_s: x, y: numeric vector of coordinates. from, to: character strings giving the coordinate systems to convert between. _D_e_t_a_i_l_s: The coordinate systems are '"_u_s_e_r"' user coordinates. '"_i_n_c_h_e_s"' inches. '"_d_e_v_i_c_e"' the device coordinate system. '"_n_d_c"' normalized device coordinates. '"_n_f_c"' normalized figure coordinates. '"_n_p_c"' normalized plot coordinates. '"_n_i_c"' normalized inner region coordinates. (The 'inner region' is that inside the outer margins.) (These names can be partially matched.) For the 'normalized' coordinate systems the lower left has value 0 and the top right value 1. Device coordinates are those in which the device works: they are usually in pixels where that makes sense and in big points (1/72 inch) otherwise (e.g. 'pdf' and 'postscript'). _V_a_l_u_e: A numeric vector of the same length as the input. _E_x_a_m_p_l_e_s: op <- par(omd=c(0.1, 0.9, 0.1, 0.9), mfrow = c(1, 2)) plot(1:4) for(tp in c("in", "dev", "ndc", "nfc", "npc", "nic")) print(grconvertX(c(1.0, 4.0), "user", tp)) par(op)