plotMIRAScores: Plot MIRA scores and compare different conditions

Description Usage Arguments Details Value Examples

View source: R/plotting.R

Description

Splits up samples by sample type. Displays each region set in a different subplot. If you only want to plot certain region sets, subset with the 'featID' parameter.

Usage

1
2
plotMIRAScores(scoreDT, featID = unique(scoreDT[, featureID]),
  colBlindOption = FALSE)

Arguments

scoreDT

A datatable with the following columns: score, featureID (names of region sets), ideally include 'sampleType'.

featID

Region set name/names in a single string or vector of strings.

colBlindOption

If TRUE, function will plot with a color blind friendly palette which could be helpful when plotting multiple colors.

Details

Due to the limited number of colors in the palette, a warning will be issued if there are too many (more than 9) region sets ('featureID's).

Value

a plot of class "gg"/"ggplot" that shows MIRA scores with geom_boxplot and geom_jitter (or geom_violin instead of boxplot if no sampleType column is given).

Examples

1
2
3
4
5
6
data(bigBinDT2)
exScores <- calcMIRAScore(bigBinDT2)
# adding annotation
sampleType <- rep(c("Ewing", "Muscle-related"), each = 24)
exScores <- cbind(exScores, sampleType)
exScorePlot <- plotMIRAScores(exScores)         

databio/MIRA documentation built on April 16, 2020, 9:53 p.m.