ewce_plot | R Documentation |
ewce_plot
generates plots of EWCE enrichment results
ewce_plot(
total_res,
mtc_method = "bonferroni",
q_threshold = 0.05,
ctd = NULL,
annotLevel = 1,
heights = c(0.3, 1),
make_dendro = FALSE,
verbose = TRUE
)
total_res |
Results data.frame generated using bootstrap_enrichment_test or ewce_expression_data functions. Multiple results tables can be merged into one results table, as long as the 'list' column is set to distinguish them. Multiple testing correction is then applied across all merged results. |
mtc_method |
Method to be used for multiple testing correction. Argument is passed to p.adjust (DEFAULT: "bonferroni). |
q_threshold |
Corrected significance threshold. |
ctd |
CellTypeDataset object. Should be provided so that the dendrogram can be taken from it and added to plots. |
annotLevel |
An integer indicating which level of |
heights |
The relative heights row in the grid. Will get repeated to match the dimensions of the grid. Passed to wrap_plots. |
make_dendro |
Add a dendrogram (requires |
verbose |
Print messages. |
A named list containing versions of the ggplot with and without the dendrogram. Note that cell type order on the x-axis is based on hierarchical clustering for both plots if make_dendro = TRUE.
## Bootstrap significance test,
## no control for transcript length or GC content
## Use pre-computed results to speed up example
total_res <- EWCE::example_bootstrap_results()$results
plt <- ewce_plot(total_res = total_res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.