powered by
Add x axis title to plot
# S4 method for Iheatmap add_col_title( p, title, textangle = 0, font = get_layout(p)$font, side = c("bottom", "top"), size = 0.1, buffer = 0.01, xname = current_xaxis(p), yname = NULL )
Iheatmap-class object, which can be printed to generate an interactive graphic
Iheatmap-class
iheatmap object
title of axis
angle of text
list of plotly font attributes, see https://plotly.com/javascript/reference/#layout-font
side of plot on which to add subplot
relative size of subplot relative to main heatmap
amount of space to leave empty before this plot, relative to size of first heatmap
name for xaxis
name for yaxis
Alicia Schep
add_col_labels, iheatmap, add_row_title
add_col_labels
iheatmap
add_row_title
mat <- matrix(rnorm(20), ncol = 5, nrow = 4) hm <- iheatmap(mat) %>% add_col_title("My x-axis") # Print heatmap if interactive session if (interactive()) hm
Run the code above in your browser using DataLab