HTMLplot               package:R2HTML               R Documentation

_I_n_s_e_r_t _a _g_r_a_p_h_i_c _i_n_t_o _a_n _H_T_M_L _o_u_t_p_u_t

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

     Exports the active graphic to a JPEG or GIF file and add it to a
     target HTML output, by writing the <IMG> tag.

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

     "HTMLplot" <- function (Caption = "", file = .HTML.file, GraphDirectory = ".", 
         GraphFileName = "", GraphSaveAs = "png", GraphBorder = 1, 
         Align = "center", width=500,height=NULL,WidthHTML=500,HeightHTML=NULL,append=TRUE,...) 

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

 Caption: text to be placed below the graphic, as a caption

    file: the target HTML file 

GraphDirectory: path where file should be stored 

GraphFileName: name of the file to produce (could be missing) 

GraphSaveAs: an existing exportation device, such as jpg or gif 

GraphBorder: HTML border option for the <IMG> tag 

   Align: HTML align option for the <IMG> tag

   width: width of the image to create (passed to the driver)

  height: height of the image to create (passed to the driver) (NULL:
          not specified)

WidthHTML: Width of the image in HTML

HeightHTML: Height of the image in HTML (NULL for not specified)

  append: logical. If 'TRUE' output will be appended to 'file';
          otherwise, it will overwrite the contents of 'file'

     ...: ... 

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

     Note that this function is coded to work automatically when using
     automatic exportation with 'HTMLStart'. When using manualy, user
     should pay attention to the GraphDirectory option, so that graph
     files are in the same directory as HTML output files. When using
     to write reports in a non interactive way, first generate the
     graphic using a device and then use 'HTMLInsertGraph'.

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

     no value returned.

_N_o_t_e:

     For a discussion about .HTML.outdir and HTLMenv, refer to
     'HTMLStart'

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

     Eric Lecoutre

_R_e_f_e_r_e_n_c_e_s:

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

     'HTMLStart', 'HTMLInsertGraph'

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

     ## Plots a graphic and insert it into the file /test.html.
     ## Target file and also graph directory should be changed when submitting this code...

     myfile <- paste(tempfile(),".html",sep="")
     plot(sin, -pi, 2*pi,main="Sinus")
     # HTMLplot(file=myfile,GraphDirectory="/",Caption="Look at this curve!")

