Learn R Programming

MAFDash (version 0.2.1)

generateMutationTypePlot: Function to generate silent and non-silent mutation plot

Description

This function generates silent and non-silent mutation plot using the MAF data.

Usage

generateMutationTypePlot(mymaf, savename = NULL, returndata = FALSE)

Arguments

mymaf

The MAF object

savename

The name and path of the output file

returndata

Flag to output the plot data (By Default returndata = FALSE)

Value

A ggplot object if returndata is FALSE or a list containing the ggplot object and plot data if returndata is TRUE

Examples

Run this code
# NOT RUN {
library(MAFDash)
library(maftools)
maf <- system.file("extdata", "test.mutect2.maf.gz", package = "MAFDash")
generateMutationTypePlot(read.maf(maf))
# }

Run the code above in your browser using DataLab