Learn R Programming

prettyR (version 1.0-4)

HTMLgraph: Create a graphic in HTML output

Description

Creates a graphic file and links it to the HTML output.

Usage

HTMLgraph(listfile, graphfile = NULL,type = "png",...)

Arguments

listfile
The name of the HTMLize listing file.
graphfile
The name for the graphic file (see Details).
type
The graphic format in which to write the image.
...
Additional arguments - currently ignored.

Value

  • nil

Details

HTMLgraph sets up a graphic device to allow an R graphic to be written to a file and that file linked to the HTML listing. If no filename is passed, a name is constructed from fig and a number that does not match any existing fignnn... file. Only bmp, jpeg and png files are currently handled, defaulting to the last.