ggplot2
ggplot2_eCDF_v2.Rd
Revised version 2
ggplot2_eCDF_v2( dat = NULL, smoothed.ecdf = F, anchor.group = NULL, anchor.group.colors = NULL, time.var = NULL, change.score = NULL, shell.table = FALSE )
dat | pass the dataframe |
---|---|
smoothed.ecdf | if TRUE, uses the smoothed density to plot the eCDF; default is FALSE |
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 eCDF using ggplot2 package
Plot the eCDF consistent with FDA COA Guidance 3, using ggplot2
R package