save_iheatmap: save_iheatmap

save_iheatmapR Documentation

save_iheatmap

Description

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

Usage

## S4 method for signature '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(s)

Alicia Schep

Examples

mat <- matrix(rnorm(24), nrow = 6)
hm <- iheatmap(mat)
## Not run: 
save_iheatmap(hm, "example_iheatmap.png")

## End(Not run)

iheatmapr documentation built on May 29, 2024, 8:55 a.m.