plotTiTv {maftools} | R Documentation |
Takes results generated from titv
and plots the Ti/Tv ratios and contributions of 6 mutational conversion classes in each sample.
plotTiTv(res = NULL, plotType = "both", file = NULL, width = 6, height = 5, color = NULL, showBarcodes = FALSE, textSize = 2, baseFontSize = 12, axisTextSize = c(9, 9))
res |
results generated by |
plotType |
Can be 'bar', 'box' or 'both'. Defaults to 'both' |
file |
basename for output file name. If given pdf will be generated. |
width |
width of the plot, in inches. |
height |
height of the plot, in inches. |
color |
named vector of colors for each coversion class. |
showBarcodes |
Whether to include sample names for barplot |
textSize |
fontsize if showBarcodes is TRUE. Deafult 2. |
baseFontSize |
font size. Deafult 12. |
axisTextSize |
text size x and y tick labels. Default c(9,9). |
None.
laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools") laml <- read.maf(maf = laml.maf) laml.titv = titv(maf = laml, useSyn = TRUE) plotTiTv(laml.titv)