PlotSignaturesContProbs: PlotSignaturesContProbs

View source: R/firevat_plot.R

PlotSignaturesContProbsR Documentation

PlotSignaturesContProbs

Description

Plots a horizontal barplot of identified mutational signatures

Usage

PlotSignaturesContProbs(
  df.identified.mut.sigs,
  df.ref.sigs.groups.colors,
  title,
  convert.to.percentage = T,
  font.size.small = 8,
  font.size.med = 14,
  plot.margin = unit(c(0.5, 0.5, 0.5, 0.5), "cm")
)

Arguments

df.identified.mut.sigs

A data.frame of identified mutational signatures

df.ref.sigs.groups.colors

A data.frame with 'signature', 'group', and 'color' columns

title

Plot title

convert.to.percentage

If true, convert y values to percentage (x 100); Default = T,

font.size.small

Small font size; Default = 8,

font.size.med

Medium font size; Default = 14,

plot.margin

Margin vector for drawing plot; Default = unit(c(0.5, 0.5, 0.5, 0.5), "cm"))

Value

A ggplot object

Examples

## Not run: 
 g <- PlotSignaturesContProbs(sigs = c(mutalisk.results$identified.mut.sigs),
 sigs.probs = c(mutalisk.results$identified.mut.sigs.probs),
 df.ref.sigs.groups.colors = GetPCAWGMutSigsEtiologiesColors())
 print(g)

## End(Not run)

cgab-ncc/FIREVAT documentation built on Nov. 19, 2022, 5:55 p.m.