Description Usage Arguments Details Examples
Test alter_fun for oncoPrint()
1 | test_alter_fun(fun, type, asp_ratio = 1)
|
fun |
The |
type |
A vector of alteration types. It is only used when |
asp_ratio |
The aspect ratio (width/height) for the small rectangles. |
This function helps you to have a quick view of how the graphics for each alteration type and combinations look like.
1 2 3 4 5 6 7 8 9 10 | alter_fun = list(
mut1 = function(x, y, w, h) grid.rect(x, y, w, h, gp = gpar(fill = "red", col = NA)),
mut2 = function(x, y, w, h) grid.rect(x, y, w, h, gp = gpar(fill = "blue", col = NA)),
mut3 = function(x, y, w, h) grid.rect(x, y, w, h, gp = gpar(fill = "yellow", col = NA)),
mut4 = function(x, y, w, h) grid.rect(x, y, w, h, gp = gpar(fill = "purple", col = NA)),
mut5 = function(x, y, w, h) grid.rect(x, y, w, h, gp = gpar(lwd = 2)),
mut6 = function(x, y, w, h) grid.points(x, y, pch = 16),
mut7 = function(x, y, w, h) grid.segments(x - w*0.5, y - h*0.5, x + w*0.5, y + h*0.5, gp = gpar(lwd = 2))
)
test_alter_fun(alter_fun)
|
Loading required package: grid
========================================
ComplexHeatmap version 2.6.2
Bioconductor page: http://bioconductor.org/packages/ComplexHeatmap/
Github page: https://github.com/jokergoo/ComplexHeatmap
Documentation: http://jokergoo.github.io/ComplexHeatmap-reference
If you use it in published research, please cite:
Gu, Z. Complex heatmaps reveal patterns and correlations in multidimensional
genomic data. Bioinformatics 2016.
This message can be suppressed by:
suppressPackageStartupMessages(library(ComplexHeatmap))
========================================
`alter_fun` is defined as a list of functions.
Functions are defined for following alteration types:
mut1, mut2, mut3, mut4, mut5, mut6, mut7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.