Skip to contents

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

Usage

# S4 method for class '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

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.

Author

Alicia Schep

Examples

mat <- matrix(rnorm(24), nrow = 6)
hm <- iheatmap(mat)
if (FALSE) { # \dontrun{
save_iheatmap(hm, "example_iheatmap.png")
} # }