add_col_title: add_col_title

Description Usage Arguments Value Author(s) See Also Examples

Description

Add x axis title to plot

Usage

1
2
3
4
## S4 method for signature '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)

Arguments

p

iheatmap object

title

title of axis

textangle

angle of text

font

list of plotly font attributes, see https://plot.ly/javascript/reference/#layout-font

side

side of plot on which to add subplot

size

relative size of subplot relative to main heatmap

buffer

amount of space to leave empty before this plot, relative to size of first heatmap

xname

name for xaxis

yname

name for yaxis

Value

Iheatmap-class object, which can be printed to generate an interactive graphic

Author(s)

Alicia Schep

See Also

add_col_labels, iheatmap, add_row_title

Examples

1
2
3
4
5
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 

iheatmapr documentation built on Dec. 9, 2017, 1:04 a.m.