Devices                 package:base                 R Documentation

_L_i_s_t _o_f _G_r_a_p_h_i_c_a_l _D_e_v_i_c_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     The following graphics devices are currently available:

        *  'postscript' Writes PostScript graphics commands to a file

        *  'pdf' Write PDF graphics commands to a file

        *  'pictex' Writes LaTeX/PicTeX graphics commands to a file

        *  'xfig' Device for XFIG graphics file format

        *  'bitmap' bitmap pseudo-device via 'GhostScript' (if
           available).

     The following devices will be available if R was compiled to use
     them and started with the appropriate '--gui' argument:

        *  'X11' The graphics driver for the X11 Window system

        *  'png' PNG bitmap device

        *  'jpeg' JPEG bitmap device

        *  'GTK', 'GNOME' Graphics drivers for the GNOME GUI.

     None of these are available under 'R CMD BATCH'.

_U_s_a_g_e:

     X11(...)
     postscript(...)
     pdf(...)
     pictex(...)
     png(...)
     jpeg(...)
     GTK(...)
     GNOME(...)
     xfig(...)
     bitmap(...)

     dev.interactive()

_D_e_t_a_i_l_s:

     If no device is open, using a high-level graphics function will
     cause a device to be opened.  Which device is given by
     'options("device")' which is initially set as the most appropriate
     for each platform: a screen device in interactive use and
     'postscript' otherwise.

_V_a_l_u_e:

     'dev.interactive()' returns a logical, 'TRUE' iff an interactive
     (screen) device is in use.

_S_e_e _A_l_s_o:

     The individual help files for further information on any of the
     devices listed here;

     'dev.cur', 'dev.print', 'graphics.off', 'image', 'dev2bitmap'.

     'capabilities' to see if 'X11', 'jpeg' and 'png' are available.

_E_x_a_m_p_l_e_s:

     ## Don't run: 
     ## open the default screen device on this platform if no device is
     ## open
     if(dev.cur() == 1) get(getOption("device"))()
     ## End Don't run

