mafbarplot {maftools} | R Documentation

## Creates a bar plot

### Description

Takes an MAF object and generates a barplot of mutated genes color coded for variant classification

### Usage

    mafbarplot(
      maf,
      n = 20,
      genes = NULL,
      color = NULL,
      fontSize = 0.7,
      includeCN = FALSE,
      legendfontSize = 0.7,
      borderCol = "#34495e",
      showPct = TRUE
    )

### Arguments

`maf` | an `MAF` object
`n` | Number of genes to include. Default 20.
`genes` | Manually provide names of genes. Default NULL.
`color` | named vector of colors for each Variant_Classification. Default NULL.
`fontSize` | Default 0.7
`includeCN` | Include copy number events if available? Default FALSE
`legendfontSize` | Default 0.7
`borderCol` | Default "#34495e". Set to 'NA' for no border color.
`showPct` | Default TRUE. Show percent altered samples.

### Examples

    laml.maf = system.file("extdata", "tcga_laml.maf.gz", package = "maftools") #MAF file
    laml = read.maf(maf = laml.maf)
    mafbarplot(maf = laml)

[Package maftools version 2.10.05 Index]