
A line plot visualizing the number of pairwise orthologs within a ortho table generated with generate_ortholog_tables_all
Source: R/plot_pairwise_orthologs.R
plot_pairwise_orthologs.RdGiven a ortho table generated with generate_ortholog_tables_all,
this function will visualize the number of pairwise orthologs inferred between a reference species A vs a set of subject species B_1, B_2, ...,B_N.
Usage
plot_pairwise_orthologs(
ortho_tables,
species_order,
xlab = "Subject Species",
ylab = "Number of reciprocal best hit orthologs",
title = "",
n_core_orthologs = NULL
)Arguments
- ortho_tables
a
ortho tablesthat was generated withgenerate_ortholog_tables_all.- species_order
a character string specifying species names listed in the order of phylogenetic/taxonomic distance from the query species. The species names must match with the species names present in the
ortho_tables.- xlab
x-axis label.
- ylab
y-axis label.
- title
plot title.
- n_core_orthologs
number of core orthologs within the
ortho tables. This number can be retrieved usingretrieve_core_orthologs.