add_row_barplot
# S4 method for Iheatmap
add_row_barplot(
p,
x,
...,
color = NULL,
tracename = NA_character_,
showlegend = !is.na(tracename),
side = c("right", "left"),
layout = list(),
size = 0.2,
buffer = 0.02,
xname = NULL,
yname = current_yaxis(p),
pname = if (!is.na(tracename)) tracename else "row_barplot"
)
Iheatmap-class
object, which can be printed to generate
an interactive graphic
iheatmap object
x axis values
additional arguments to add to plotly scatter trace, see https://plotly.com/javascript/reference/#scatter
color of bars
name of trace (for legend and hover)
show in legend?
side of plot on which to add subplot
yaxis layout list
relative size of subplot relative to main 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
add_row_signal
, iheatmap
,
add_row_plot
mat <- matrix(rnorm(20), ncol = 5, nrow = 4)
hm <- iheatmap(mat) %>% add_row_barplot(x = 1:4, tracename = "Strength")
# Print heatmap if interactive session
if (interactive()) hm
Run the code above in your browser using DataLab