View source: R/visualization.R
plot_og_sizes | R Documentation |
Plot orthogroup sizes per species
plot_og_sizes(orthogroups = NULL, log = FALSE, max_size = NULL)
orthogroups |
A 3-column data frame with columns Orthogroup,
Species, and Gene. This data frame can be created from
the 'Orthogroups.tsv' file generated by OrthoFinder with the function
|
log |
Logical indicating whether to transform orthogroups sizes with natural logarithms. Default: FALSE. |
max_size |
Numeric indicating the maximum orthogroup size to consider.
If this parameter is not NULL, orthogroups larger
than |
A ggplot object with a violin plot.
data(og)
plot_og_sizes(og, log = TRUE)
plot_og_sizes(og, max_size = 100)
plot_og_sizes(og, log = TRUE, max_size = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.