powered by
Plot the power results by MAF, OR, Alpha or N
power.plot(data = NULL, x = "MAF", panel.by = "True.Model", y_limit = NULL, y_log = F, return_gg = F, linear.effect.measure = "ES", select.Alpha = NULL, select.OR = NULL, select.ES = NULL, select.N = NULL, select.MAF = NULL, select.Case.Rate = NULL, select.SD = NULL, select.True.Model = NULL, select.Test.Model = NULL)
The data frame result from power.calc
power.calc
The desired variable on the y axis: "MAF", "OR", "Alpha", or "N_total"
A grouping variable to panel the graphs by: "True.Model", "MAF", "OR", "Alpha", or "N_total"
An object specifying the minimum and maximum of the y-axis (eg c(0,4)) default is NULL, which allows the limits to be picked automatically
Logical, specifying whether the y axis should be logarithmic. Default is F
Logical, specifying whether to return the ggplot object instead of printing out the plot
Should the graphs indicate ES values, or R2 values? (default ES)
Only produce graphs for the specified Alpha level(s).
Only produce graphs for the specified odds ratio(s).
Only produce graphs for the specified effect sizes(s).
Only produce graphs for the specified sample size(s).
Only produce graphs for the specified minor allele frequency(ies).
Only produce graphs for the specified case rate(s).
Only produce graphs for the specified standard deviation(s).
Only produce graphs for the specified true genetic model(s): "Additive", "Dominant", "Recessive".
Only produce graphs for the specified testing model(s): "Additive", "Dominant", "Recessive", "2df".
A series of plots with power on the Y axis.
# NOT RUN { pw <- power.calc(N=1000, Case.Rate=c(0.5), k=NULL, MAF=seq(0.15, 0.2, 0.01), OR=1.5,Alpha=c(0.05), True.Model='All', Test.Model='All') # }
Run the code above in your browser using DataLab