View source: R/differential_expression.R
comparedeg_scatter | R Documentation |
Generate a scatter plot of fold changes comparing two differential expression results, e.g. w/wo adjusting for cell proportion differences.
comparedeg_scatter(
results1,
results2,
result_names = NULL,
fc_cutoff,
pval_cutoff,
pvalflag = TRUE,
interactive = FALSE
)
results1 |
a data.frame containing differential expression results with five columns: "Gene name", "log2 fold change", "log2 average expression",
"p value", "adjusted p value". The second element of the output from function |
results2 |
similar to |
result_names |
a vector of length 2 indicating the names of the two differential results. If NULL, names will be set to c("results1", "results2") |
fc_cutoff |
fold change cutoff to identify differential expressed genes. |
pval_cutoff |
p value cutoff to identify differential expressed genes. |
pvalflag |
a logical value indicating whether to use adjusted p value in selecting differential expressed genes. |
interactive |
a logical value indicating whether to generate an interactive plot. |
See examples from run_de
.
a ggplot
object or plotly
object if interactive is set to TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.