ssvFeatureBinaryHeatmap: binary heatmap indicating membership. heatmap is sorted by...

Description Usage Arguments Value Examples

View source: R/functions_feature_plots.R

Description

binary heatmap indicating membership. heatmap is sorted by column left to right. change column order to reveal patterns

Usage

1
2
3
4
5
6
7
8
9
ssvFeatureBinaryHeatmap(
  object,
  raster_approximation = FALSE,
  true_color = "black",
  false_color = "#EFEFEF",
  raster_width_min = 1000,
  raster_height_min = 1000,
  return_data = FALSE
)

Arguments

object

passed to ssvMakeMembTable

raster_approximation

If TRUE, instead of standard ggplot, write temporary raster png image and redraw that as plot background. default is FALSE

true_color

character. rcolor or hex color used for TRUE values. default is "black".

false_color

character. rcolor or hex color used for TRUE values. default is "#EFEFEF", a gray.

raster_width_min

raster width will be minimum multiple of number of columns over this number. ignored if raster_approximation is FALSE.

raster_height_min

raster height will be minimum multiple of number of rows over this number ignored if raster_approximation is FALSE

return_data

logical. If TRUE, return value is no longer ggplot and is instead the data used to generate that plot. Default is FALSE.

Value

ggplot using geom_tile of membership table sorted from left to right.

Examples

1
2
3
4
5
6
7
ssvFeatureBinaryHeatmap(list(1:3, 2:6))
# horizontal version
ssvFeatureBinaryHeatmap(list(1:3, 2:6)) + coord_flip() +
  theme(axis.text.x = element_blank(), axis.text.y = element_text())
ssvFeatureBinaryHeatmap(CTCF_in_10a_overlaps_gr)
ssvFeatureBinaryHeatmap(S4Vectors::mcols(CTCF_in_10a_overlaps_gr)[,2:3])
ssvFeatureBinaryHeatmap(S4Vectors::mcols(CTCF_in_10a_overlaps_gr)[,3:2])

seqsetvis documentation built on Nov. 8, 2020, 5:57 p.m.