html.plot: html.plot

Description Usage Arguments Details Author(s) See Also Examples

View source: R/pub01_utilityFuncs.R

Description

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

Usage

1
2
3
4
html.plot(plotObj, file = get(".HTML.file"), Caption = "",
  GraphBorder = 0, Align = "center", Width = 500, Height = 500,
  WidthHTML = NULL, HeightHTML = NULL, GraphPointSize = 12,
  GraphBackGround = "white")

Arguments

plotObj

A plot object which could be the result of a plot function or a ggplot function.

file

A charactor string, giving the path and the file name of the html report file

Caption

If non empty, text to be written under the graph, as its caption

...

More arguments to the png function and HTMLInsertGraph function in the package R2HTML

Details

This function is a wraped function of the HTMLInsertGraph function in the package R2HTML

Author(s)

Ruifei.Yin

See Also

HTMLInsertGraph,HTMLplot

Examples

1
2
.HTML.file <-  file.path(getwd(),"htmlrpt.html")
html.plot(plot(1:5))

QuantAndrew/QUtility documentation built on May 14, 2019, 7:36 a.m.