powered by
Adds an arbitrary subplot to iheatmap
# S4 method for Iheatmap add_subplot( p, ..., side = c("top", "bottom", "right", "left"), layout = list(), size = 1, buffer = 0.1, xname = if (side %in% c("top", "bottom")) current_xaxis(p) else NULL, yname = if (side %in% c("left", "right")) current_yaxis(p) else NULL, pname = "subplot" )
Iheatmap-class object, which can be printed to generate an interactive graphic
Iheatmap-class
iheatmap object
arguments to pass to plotly trace, see plotly.js documentation at https://plotly.com/javascript/reference/
which side of the current plot to add this heatmap? "right", "left","top", or "bottom"
axis layout parameters (list)
relative size of plot. size relative to first heatmap
amount of space to leave empty before this plot, relative to size of first heatmap
internal name of xaxis
internal name of yaxis
internal name of plot
Alicia Schep
iheatmap
mat <- matrix(rnorm(24), ncol = 6) hm <- iheatmap(mat) %>% add_subplot(x = 1:5, y=1:5, side = "top") # Print heatmap if interactive session if (interactive()) hm
Run the code above in your browser using DataLab