Description Usage Arguments Details Value Author(s) Examples
View source: R/plot_functions.R
This function visualizes the distribution of pvalues.
1  vis_pval_distr_num_pat(res_sim, output_pdf = "direct")

res_sim 
tibble containing the simulated pairs of genes/pathways.
It contains the columns 'num_patients',
and 'pval', and can be generated with

output_pdf 
The name of the pdf to be generated. Or if output_pdf is "direct", then the plot is generated directly and not to a pdf. Default: "direct" 
It is especially useful, when exploring the results with simulated
data under the null hypothesis, i.e. when delta is zero.
In that scenario, the pvalues are expected to be uniformly distributed.
This function can take the pvalues from
generate_test_stat_hist
where the concatenated tibble
contains different values for 'num_pat_pair',
i.e. the number of patients the simulated pairs are mutated in. The
input tibble is expected to have the two columns
'pval', and 'num_patients'. Left panel: histogram of all pvalues from
the whole tibble.
Right panel: ecdf of the pvalues with different colors for different
numbers of patients that the pairs were mutated in.
None, the function plots a pvalue histogram.
Ariane L. Moore
1 2 3 4 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.