HTMLstem: Insert a stem-and-leaf plot in the HTML output

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Insert a stem-and-leaf plot in the HTML output.

Usage

1
HTMLstem(x, file = get(".HTML.file"), append = TRUE, ...)

Arguments

x

a numeric vector.

file

the target HTML file

append

logical. If 'TRUE' output will be appended to 'file'; otherwise, it will overwrite the contents of 'file'

...

any other argument that may be passed to stem, such as scale,...

Details

As stem internal function does not return anything but directly print to console, there is no way to automatically export it to the HTML output. Thus, HTMLstem simply captures the output and write it to the HTML file. When using the package in a interactive way, you should call HTMLstem.

Value

no value returned.

Author(s)

Eric Lecoutre

See Also

stem,HTML

Examples

1
2
3
4
	data(islands)
	tmpfic=paste(tempfile(),"html",sep=".")
	HTMLstem(log10(islands),tmpfic)
	cat("\n stem-and-leaf writen to:", tmpfic,"\n")

Example output

 stem-and-leaf writen to: /work/tmp/tmp/RtmpYpDaGo/file6c0472d664be.html 

R2HTML documentation built on May 2, 2019, 5:11 p.m.

Related to HTMLstem in R2HTML...