significant_barplots | R Documentation |
These plots are pretty annoying, and I am certain that this function is not well written, but it provides a series of bar plots which show the number of genes/contrast which are up and down given a set of fold changes and p-value.
significant_barplots(
combined,
lfc_cutoffs = c(0, 1, 2),
invert = FALSE,
p = 0.05,
z = NULL,
p_type = "adj",
according_to = "all",
order = NULL,
maximum = NULL,
...
)
combined |
Result from combine_de_tables and/or extract_significant_genes(). |
lfc_cutoffs |
Choose 3 fold changes to define the queries. 0, 1, 2 mean greater/less than 0 followed by 2 fold and 4 fold cutoffs. |
invert |
Reverse the order of contrasts for readability? |
p |
Chosen p-value cutoff. |
z |
Choose instead a z-score cutoff. |
p_type |
Adjusted or not? |
according_to |
limma, deseq, edger, basic, or all of the above. |
order |
Choose a specific order for the plots. |
maximum |
Set a specific limit on the number of genes on the x-axis. |
... |
More arguments are passed to arglist. |
list containing the significance bar plots and some information to hopefully help interpret them.
## Not run:
expt <- create_expt(metadata = "some_metadata.xlsx", gene_info = annotations)
pairwise_result <- all_pairwise(expt)
combined_result <- combine_de_tables(pairwise_result)
## Damn I wish I were smrt enough to make this elegant, but I cannot.
barplots <- significant_barplots(combined_result)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.