View source: R/Script_PLATE_06_MODALITY_ANALYSIS_2_1_PropModality_Doughnut.R
| PropModality.Doughnut | R Documentation | 
Tabulates and plots the proportion of each modality without breaking down by splicing event type.
PropModality.Doughnut(MarvelObject, modality.column, modality.type, event.type)
| 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  | 
An object of class S3 with new slots MarvelObject$Modality$Prop$DoughnutChart$Table and MarvelObject$Modality$Prop$DoughnutChart$Plot.
marvel.demo <- readRDS(system.file("extdata/data", "marvel.demo.rds", package="MARVEL"))
marvel.demo <- PropModality.Doughnut(MarvelObject=marvel.demo,
                                     modality.column="modality.bimodal.adj",
                                     modality.type="extended",
                                     event.type=c("SE", "MXE", "RI", "A5SS", "A3SS", "AFE", "ALE")
                                     )
# 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.