View source: R/Script_PLATE_06_MODALITY_ANALYSIS_2_0_PropModality.R
PropModality | R Documentation |
Tabulates and plots the proportion of each modality. This is a wrapper function for PropModality.Doughnut
and PropModality.Bar
functions.
PropModality( MarvelObject, modality.column, modality.type, event.type, across.event.type, prop.test = NULL, prop.adj = NULL, xlabels.size = 8, zoom = FALSE, yinterval = NULL )
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 |
An object of class S3 containing with new slot $Modality$Prop$DoughnutChart
or $Modality$Prop$BarChart
.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.