Learn R Programming

aplotExtra (version 0.0.6)

oncoplot_components: Get reusable oncoplot components

Description

Build the reusable panels and tidy data used by oncoplot(). This function is intended for downstream packages that want to assemble an oncoplot with additional tracks while reusing the aplotExtra mutation matrix, sample burden, gene burden, and mutation color mapping.

Usage

oncoplot_components(maf, genes = 20)

Value

A list with components:

data

Tidy oncoplot matrix.

main

Main mutation tile plot.

sample

Sample-level top annotation plot.

gene

Gene-level side annotation plot.

colors

Named mutation-class color vector.

Arguments

maf

A MAF object.

genes

The gene names or number of top mutated genes.