View source: R/visualization_functions.R
dot_plot | R Documentation |
Given the results from 'cinaR' it produces dot plots for enrichment analyses.
dot_plot(results, fdr.cutoff = 0.1, filter.pathways = FALSE)
results |
cinaR result object |
fdr.cutoff |
Pathways with smaller fdr values than the cut-off will be shown as dots. |
filter.pathways |
logical, it will filter the pathways from dot plot with fdr values less than 'fdr.cutoff'. |
ggplot object
library(cinaR) data(atac_seq_consensus_bm) # calls 'bed' # a vector for comparing the examples contrasts <- sapply(strsplit(colnames(bed), split = "-", fixed = TRUE), function(x){x[1]})[4:25] results <- cinaR(bed, contrasts, reference.genome = "mm10") dot_plot(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.