save-methods: Save a gadget's main output

Description Usage Arguments Examples

Description

Use this method to save the d3heatmap from the d3heatmapGadget without intermediary code.

Usage

1
2
3
4
save(gadget, ...)

## S4 method for signature 'd3heatmapGadget'
save(gadget, file = NULL, ...)

Arguments

gadget

The gadget to save to file

...

arguments to pass to htmlwidgets::saveWidget

file

the name of the file, without extension

Examples

1
2
3
4
5
6
7
## Not run: 

hm <- d3heatmapGadget(mtcars)
save(hm, file = "myHeatmap")


## End(Not run)

rstudio/d3heatmap documentation built on May 26, 2021, 10:16 p.m.