pdf.options            package:grDevices            R Documentation

_A_u_x_i_l_i_a_r_y _F_u_n_c_t_i_o_n _t_o _S_e_t/_V_i_e_w _D_e_f_a_u_l_t_s _f_o_r _A_r_g_u_m_e_n_t_s _o_f _p_d_f

_D_e_s_c_r_i_p_t_i_o_n:

     The auxiliary function 'pdf.options' can be used to set or view
     (if called without arguments) the default values for some of the
     arguments to 'pdf'.

     'pdf.options' needs to be called before calling 'pdf', and the
     default values it sets can be overridden by supplying arguments to
     'pdf'.

_U_s_a_g_e:

     pdf.options(..., reset = FALSE)

_A_r_g_u_m_e_n_t_s:

     ...: arguments 'width', 'height', 'onefile', 'family', 'title',
          'fonts', 'paper', 'encoding', 'pointsize', 'bg', 'fg' and
          'pagecentre' can be supplied.

   reset: logical: should the defaults be reset to their
          'factory-fresh' values?

_D_e_t_a_i_l_s:

     If both 'reset = TRUE' and '...' are supplied the defaults are
     first reset to the 'factory-fresh' values and then the new values
     are applied.

_V_a_l_u_e:

     A named list of all the defaults.  If any arguments are supplied
     the return values are the old values and the result has the
     visibility flag turned off.

_S_e_e _A_l_s_o:

     'pdf', 'ps.options'.

_E_x_a_m_p_l_e_s:

     pdf.options(bg = "pink")
     utils::str(pdf.options())
     pdf.options(reset = TRUE) # back to factory-fresh

