webPNG               package:CGIwithR               R Documentation

_A _W_r_a_p_p_e_r _f_o_r _t_h_e '_b_i_t_m_a_p' _G_r_a_p_h_i_c_s _D_e_v_i_c_e

_D_e_s_c_r_i_p_t_i_o_n:

     'webPNG' sets up a bitmap graphics device for graphs drawn within
     a CGI script.

_U_s_a_g_e:

     webPNG(file, ...)

_A_r_g_u_m_e_n_t_s:

    file: A filename, as a character string

     ...: Any other arguments to 'bitmap'

_D_e_t_a_i_l_s:

     Before 'webPNG' is called, the variable  'graphDir' must be a
     character string giving the location where graphics files will be
     written by R and found by the web server. The directory specified
     in 'graphDir' must be writeable and  readable by the web server in
     order to work.  For example, if  'graphDir' is
     '"/users/david/public_html/graphs/"' (note the trailing '/'!), and
     if 'file' is '"mygraph.png"',  the next graph will be written to 
     '"/users/david/public_html/graphs/mygraph.png"', provided that
     '/users/david/public_html/graphs' has suitable permissions.

_V_a_l_u_e:

     None ('invisible(NULL)')

_A_u_t_h_o_r(_s):

     David Firth d.firth@warwick.ac.uk

_S_e_e _A_l_s_o:

     'img'

_E_x_a_m_p_l_e_s:

     ## Not run: 
       graphDir <- "/users/david/public_html/graphs/"
       webPNG("mygraph.png")
       ## then do whatever plotting is required...
       
     ## End(Not run)

