Learn R Programming

iheatmapr (version 0.7.1)

save_iheatmap: save_iheatmap

Description

save an link{Iheatmap-class} object, either as standalone HTML or as static pdf/png/jpeg

Usage

# S4 method for Iheatmap,character
save_iheatmap(p, filename, ...)

Arguments

p

link{Iheatmap-class} object

filename

name of file

...

additional arguments to saveWidget for saving as html or webshot for saving as pdf/png/jpeg

Author

Alicia Schep

Details

Note that this function requires the webshot package. If deploying a shiny app that calls this function in shinyapps.io, loading the webshot library and calling webshot::install_phantomjs() is needed for the the save functionality to work.

Examples

Run this code
mat <- matrix(rnorm(24), nrow = 6)
hm <- iheatmap(mat)
if (FALSE) {
save_iheatmap(hm, "example_iheatmap.png")
}

Run the code above in your browser using DataLab