makeHTML: Arrange figures in HTML

Description Usage Arguments Value Note Author(s) Examples

Description

Embed a collection of figures in HTML with basic navigation capabilities

Usage

1
makeHTML(x, title = "untitled")

Arguments

x

A data frame listing the graphics files to embed. See details below.

title

Character string used as a title for the HTML page.

Value

HTML code as a character string. Needs to be printed to a file, e.g. using write.

Note

The data frame x must have 4 columns named 'h1', 'h2', 'width', and 'file' all being of character type. The first two columns specify headers of category 1 and 2, respectively. The 'h2' column can contain NA values where sub-headings are to be suppressed. The width is best specified as a percentage, e.g. '50 display. The files need to be in a format supported by the web browser such as SVG or PNG for vector and pixel graphics, respectively.

The data frame is not sorted by any column (not even 'h1').

Author(s)

David Kneis david.kneis@tu-dresden.de

Examples

1
2
3
4
5
6
test= data.frame(stringsAsFactors=FALSE,
  h1=c("summer","summer","winter","winter"),
  h2=c("TP","TN","TP","TN"),
  width="50%",
  file=c("summerTP.svg","summerTN.svg","winterTP.svg","winterTN.svg")
)

dkneis/diatools documentation built on May 15, 2019, 9:12 a.m.