snv.heatmap: Plot a SNV heatmap.

Description Usage Arguments Details Author(s) Examples

Description

description

Usage

1
snv.heatmap(x, width = 1000, height = 5000, margins = c(5, 12), ...)

Arguments

x

A data.frame with (at least) two columns name Gene and Tumour.

width

width

height

height

margins

margins

...

?

Details

details

Author(s)

Jonathan Ellis <jonathan.j.ellis@gmail.com>

Examples

1
2
3
4
5
6
7
8
9
set.seed(1000)
genes <- paste0('Gene_', toupper(letters)[1:20])
tumours <- paste0('LC1_', toupper(letters)[1:4])
x <- sapply(1:length(genes),
  function(i) sample(tumours, sample(length(tumours))[1]))
names(x) <- genes
y <- as.data.frame(unlist(x))
dat <- data.frame(Gene = substr(rownames(y), 1, 6), Tumour = y[, 1])
snv.heatmap(dat, margins = c(5, 8))

jjellis/GenomicVis documentation built on May 19, 2019, 11:39 a.m.