ez.html: Create an HTML report

View source: R/ez.html.R

ez.htmlR Documentation

Create an HTML report

Description

This function generate an nice html report for most common object in R.

Usage

ez.html(ez.results = NULL)

Arguments

ez.results

Name of the object for which a HTML repot must be done.

Details

ez.html is mainly used internally by function which returns results. It is also used for the generation of the report of a session. Nevertheless, it can be used for any most common R object (i.e., vector, data.frame, list, ggplot, matrix, character)

Value

The function return the HTML page of the object produced by knitr.

Author(s)

Nicolas Stefaniak

Examples

df <- data.frame(
  gp = factor(rep(letters[1:3], each = 10)),
  y = rnorm(30)
)
ds <- plyr::ddply(df, "gp", plyr::summarise, mean = mean(y), sd = sd(y))

p<-ggplot(df, aes(gp, y)) +
  geom_point() +
  geom_point(data = ds, aes(y = mean), colour = 'red', size = 3)

result<-list()
result$df<-df
result$p<-p 
ez.html(result)


NicolasStefaniak/easieR documentation built on Jan. 31, 2025, 2:59 p.m.