logical. If 'TRUE' output will be appended to 'file'; otherwise, it will overwrite the contents of 'file'
GraphDirectory
path where file should be stored; ignore in a HTMLStart/HTMLStop session
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)
GraphPointSize
To be passed to the device creator function
GraphBackGround
To be passed to the device creator function
GraphRes
To be passed to the device creator function
plotFunction
Function to be evaluated for the on-the-fly creation of the graph to be exported
...
...
Details
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.
Value
no value returned.
Author(s)
Eric Lecoutre
See Also
HTMLStart, HTMLInsertGraph
Examples
## 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!")
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(R2HTML)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/R2HTML/HTMLplot.Rd_%03d_medium.png", width=480, height=480)
> ### Name: HTMLplot
> ### Title: Insert a graphic into an HTML output
> ### Aliases: HTMLplot
> ### Keywords: print IO file
>
> ### ** Examples
>
>
> ## 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!")
>
>
>
>
>
> dev.off()
null device
1
>