dev.size package:grDevices R Documentation _F_i_n_d _S_i_z_e _o_f _D_e_v_i_c_e _S_u_r_f_a_c_e _D_e_s_c_r_i_p_t_i_o_n: Find the dimensions of the device surface of the current device. _U_s_a_g_e: dev.size(units = c("in", "cm", "px")) _A_r_g_u_m_e_n_t_s: units: the units in which to return the value - inches, cm, or pixels (device units). _V_a_l_u_e: A two-element numeric vector giving width and height of the current device; a new device is opened if there is none, similarly to 'dev.new()'. _S_e_e _A_l_s_o: The size information in inches can be obtained by 'par("din")', but this provides a way to access it independent of the graphics sub-system in use. _E_x_a_m_p_l_e_s: dev.size("cm")