PropModality {MARVEL} | R Documentation |
Tabulate modality proportion
Description
Tabulates and plots the proportion of each modality. This is a wrapper function for PropModality.Doughnut
and PropModality.Bar
functions.
Usage
PropModality(
MarvelObject,
modality.column,
modality.type,
event.type,
across.event.type,
prop.test = NULL,
prop.adj = NULL,
xlabels.size = 8,
zoom = FALSE,
yinterval = NULL
)
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 |
across.event.type |
Logical. If set to |
prop.test |
Character string. Only applicable when |
prop.adj |
Character string. Only applicable when |
xlabels.size |
Numeric value. Only applicable when |
zoom |
Logical value. Only applicable if |
yinterval |
Logical value. Only applicable if |
Value
An object of class S3 containing with new slot $Modality$Prop$DoughnutChart
or $Modality$Prop$BarChart
.
Examples
marvel.demo <- readRDS(system.file("extdata/data", "marvel.demo.rds", package="MARVEL"))
marvel.demo <- PropModality(MarvelObject=marvel.demo,
modality.column="modality.bimodal.adj",
modality.type="extended",
event.type=c("SE", "MXE", "RI", "A5SS", "A3SS", "AFE", "ALE"),
across.event.type=FALSE
)
# Check outputs
marvel.demo$Modality$Prop$DoughnutChart$Table
marvel.demo$Modality$Prop$DoughnutChart$Plot