volcanoPlot {volcanoPlot} | R Documentation |
Create a volcano plot
Description
Creates a paneled volcano plot showing the distribution of Adverse events. Options to highlight selected events and customize options are provided.
Usage
volcanoPlot(data, highlights = c(), ...)
Arguments
data |
A data frame from getStats() |
highlights |
A list providing a column and values to be highlighted in the chart |
... |
Extra options to change the look of the plot. 'fillcol = c('sienna2', 'skyblue2', 'grey')': fill colors; 'pcutoff = 0.05': p value cutoff; ‘ecutoff = 1': estimate cutoff, 'GroupLabels = c(’Comparison Group', 'Reference Group')': custom group labels. |
Value
a volcano plot created with ggplot
Examples
settings<-list(
stratification_col="AEBODSYS",
group_col="ARM",
reference_group="Placebo",
comparison_group="Xanomeline High Dose",
id_col="USUBJID"
)
stats<-getStats(dfAE=safetyData::adam_adae, dfDemog = safetyData::adam_adsl, settings)
volcanoPlot(stats)
[Package volcanoPlot version 1.0.0 Index]