ez.html | R Documentation |
This function generate an nice html report for most common object in R.
ez.html(ez.results = NULL)
ez.results |
Name of the object for which a HTML repot must be done. |
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)
The function return the HTML page of the object produced by knitr.
Nicolas Stefaniak
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.