mafbarplot | R Documentation |
Takes an MAF object and generates a barplot of mutated genes color coded for variant classification
mafbarplot(
maf,
n = 20,
genes = NULL,
color = NULL,
fontSize = 0.7,
includeCN = FALSE,
legendfontSize = 0.7,
borderCol = "#34495e",
showPct = TRUE
)
maf |
an |
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. |
laml.maf = system.file("extdata", "tcga_laml.maf.gz", package = "maftools") #MAF file
laml = read.maf(maf = laml.maf)
mafbarplot(maf = laml)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.