gneiss.plot.balance_barplots¶
-
gneiss.plot.
balance_barplots
(tree, balance_name, header, feature_metadata, ndim=5, num_color=’#0000FF’, denom_color=’#0000FF’, xlabel=”, ylabel=”, axes=(None, None))[source]¶ Plots barplots of counts of features found in the balance.
Parameters: - tree (skbio.TreeNode) – Reference tree for balances.
- balance_name (str) – Name of balance to plot.
- header (str) – Header name for the feature metadata column to summarize
- feature_metadata (pd.DataFrame) – Contains information about the features.
- ndim (int) – Number of bars to display at a given time (default=5)
- num_color (str) – Hex for background colors of values above zero.
- denom_color (str) – Hex for background colors of values below zero.
- xlabel (str) – x-axis label.
- ylabel (str) – y-axis label.
- axes (tuple of matplotlib axes objects) – Specifies where the barplots should be rendered.
Returns: - ax_num (matplotlib axes object) – Barplot of the features in the numerator of the balance.
- ax_denom (matplotlib axes object) – Barplot of the features in the denominator of the balance.