to_plotly: Convert Iheatmap to plotly spec

Description Usage Arguments Value Examples

Description

Function to convert link{Iheatmap-class} object to a plotly spec either as a list or json

Usage

1
2
3

Arguments

p

Iheatmap-class object to convert

Value

Returns a JSON for a plotly spec for to_plotly_spec and as a list of same plotly object for to_plotly_list.

Examples

1
2
3
mat <- matrix(rnorm(24), nrow = 6)
hm_json <- iheatmap(mat) %>% to_plotly_json()
hm_list <- iheatmap(mat) %>% to_plotly_list()

iheatmapr documentation built on July 8, 2020, 7:18 p.m.