add_col_signal: add_col_signal

Description Usage Arguments Value Author(s) See Also Examples

Description

Adds column signal to iheatmap object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## S4 method for signature 'Iheatmap'
add_col_signal(
  p,
  signal,
  name,
  title = name,
  yname = NULL,
  xname = current_xaxis(p),
  pname = name,
  colorbar_position = get_colorbar_position(p),
  colors = pick_continuous_colors(zmid, zmin, zmax, p = p),
  zmin = min(signal, na.rm = TRUE),
  zmax = max(signal, na.rm = TRUE),
  zmid = 0,
  side = c("top", "bottom"),
  size = 0.05,
  buffer = 0.015,
  text = signif(signal, digits = 3),
  tooltip = setup_tooltip_options(),
  show_colorbar = TRUE,
  show_title = TRUE,
  layout = list()
)

Arguments

p

iheatmap object

signal

vector of signal

name

name of colorbar

title

label for y axis

yname

internal name of yaxis

xname

internal name of xaxis

pname

internal name of plot

colorbar_position

colorbar placement

colors

palette or vector of colors to use

zmin

minimum for colorscale

zmax

maximum for colorscale

zmid

midpoint for colorscale

side

side of plot on which to add groups

size

relative size of dendrogram (relative to the main heatmap)

buffer

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

text

text of value to display for data

tooltip

tooltip options, see setup_tooltip_options

show_colorbar

show the colorbar?

show_title

show title as axis label

layout

y axis layout parameters to use

Value

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

Author(s)

Alicia Schep

See Also

iheatmap, add_row_groups

add_row_signal, iheatmap, add_col_annotation

Examples

1
2
3
4
5
mat <- matrix(rnorm(20), ncol = 5, nrow = 4)  
hm <- iheatmap(mat) %>% add_col_signal(signal = 1:5, name = "Strength")

# Print heatmap if interactive session 
if (interactive()) hm 

iheatmapr documentation built on Jan. 13, 2021, 5:11 p.m.