pmMultiBarplot {HiLDA} | R Documentation

## Plot both mutation signatures and their mutational exposures from pmsignature output for more than two groups

### Description

Plot both mutation signatures and their mutational exposures from pmsignature output for more than two groups

### Usage

    pmMultiBarplot(inputG, inputParam, sigOrder = NULL, groupIndices,
      sortSampleNum = TRUE, charSize = 3)

### Arguments

`inputG` | a MutationFeatureData S4 class output by the pmsignature.
`inputParam` | a estimatedParameters S4 class output by the pmsignature.
`sigOrder` | the order of signatures if needed (default: NULL).
`groupIndices` | a vector of group indicators.
`sortSampleNum` | an indictor variable on whether samples are sorted by the number of mutations (default: TRUE).
`charSize` | the size of the character on the signature plot (default: 3)

### Value

a list of the signature plot and the mean difference plot.

### Examples

    load(system.file("extdata/sample.rdata", package="HiLDA"))
    Param <- pmgetSignature(G, K = 3)

    pmPlots <- pmMultiBarplot(G, Param, groupIndices=c(1, rep(2,3), rep(3,6)))
    cowplot::plot_grid(pmPlots$sigPlot, pmPlots$propPlot, rel_widths = c(1,3))

[Package HiLDA version 1.2.0 Index]