PropModality.Bar {MARVEL} | R Documentation |
Modality proportion broken down by event type
Description
Tabulates and plots the proportion of each modality broken down by splicing event type.
Usage
PropModality.Bar(
MarvelObject,
modality.column,
modality.type,
event.type,
xlabels.size = 8,
zoom = FALSE,
yinterval = NULL,
prop.test,
prop.adj
)
Arguments
MarvelObject |
Marvel object. S3 object generated from |
modality.column |
Character string. Can take the value |
modality.type |
Character string. |
event.type |
Character string. To indicate which event type to analyse. Can take the value |
xlabels.size |
Numeric value. Size of x-axis labels as per |
zoom |
Logical value. If set to |
yinterval |
Logical value. Only applicable when |
prop.test |
Character string. Only applicable when |
prop.adj |
Character string. Only applicable when |
Value
An object of class S3 containing new slots MarvelObject$Modality$Prop$BarChart$Table
and MarvelObject$Modality$Prop$BarChart$Stats
.
Examples
marvel.demo <- readRDS(system.file("extdata/data", "marvel.demo.rds", package="MARVEL"))
marvel.demo <- PropModality.Bar(MarvelObject=marvel.demo,
modality.column="modality.bimodal.adj",
modality.type="extended",
event.type=c("SE", "MXE", "RI", "A5SS", "A3SS", "AFE", "ALE"),
prop.test="fisher",
prop.adj="fdr"
)
# Check outputs
head(marvel.demo$Modality$Prop$BarChart$Table)
marvel.demo$Modality$Prop$BarChart$Plot
marvel.demo$Modality$Prop$BarChart$Stats