etree2html: Event Tree Creation

Description Usage Arguments Value References Examples

View source: R/etree2html.R

Description

Prepares a web page from an etree dataframe for a view of the data.

Usage

1
2
etree2html(DF,SVGwidth=1000,SVGheight=500,SVGleft_margin=100,
 SVGright_margin=250,dir="", write_file=FALSE)

Arguments

DF

An EventTree dataframe object.

SVGwidth

width in pixels for the SVG display.

SVGheight

height in pixels for the SVG display.

SVGleft_margin

placement of the first node of event tree display from left in pixels.

SVGright_margin

placement of the last node of event tree display from right in pixels.

dir

A character string for an absolute directory in which R can read and write.

write_file

A logical controlling whether to perform the write operation.

Value

Returns a character vector with escaped quote characters, suitable for writing to disk. Optionally, this vector will be written to a file taking the name of the object passed in as DF and appending '.html'.

References

Nicholls, David [Editor] (2005) System Reliability Toolkit Reliability information Analysis Center

O'Connor, Patrick D.T. (1991) Practical Reliability Engineering John Wiley & Sons

Examples

1
2
mytree <- etree.make(name="conveyor belt fire")
etree2html(mytree)

jto888/EventTree documentation built on May 20, 2019, 3:15 a.m.