Plots vaf distribution of genes as a boxplot or violinplot.
plotVaf(maf, vafCol = NULL, genes = NULL, density = FALSE,
violin = FALSE, top = 5)
manually specify column name for vafs. Default looks for column 't_vaf'
specify genes for which plots has to be generated
logical whether to plot density plot of vaf
if TRUE plots violin plot
if genes
is NULL plots top n number of genes. Defaults to 5.
ggplot object which can be further modified.
# NOT RUN {
laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools")
laml <- read.maf(maf = laml.maf, removeSilent = TRUE, useAll = FALSE)
plotVaf(maf = laml, vafCol = 'i_TumorVAF_WU')
# }
Run the code above in your browser using DataLab