ggplot2ggplot2_ePDF.RdPlot the ePDF (histogram) consistent with FDA COA Guidance 3, using ggplot2 R package
Generally presented along with the eCDF
ggplot2_ePDF( dat = NULL, anchor.group = NULL, anchor.group.colors = NULL, time.var = NULL, change.score = NULL, shell.table = FALSE )
| dat | pass the dataframe | 
|---|---|
| anchor.group | variable of the anchor group you want used here | 
| anchor.group.colors | if you have unique anchor groups, you need to assign colors to those anchor groups, such as c('Deteriorated_1' = 'red', 'Improved_1' = 'green') | 
| time.var | variable of the Time in the dataframe - PLEASE CHECK THAT THIS IS CORRECTLY ORDERED, default is Time | 
| change.score | indicate the name of the PRO change score | 
| shell.table | logical, if true the sample size will be "xx", can be used as shell tables | 
Plot of ePDF using ggplot2 package