color_nodes: Color network nodes by edge between cluster ID and phylum

View source: R/color_nodes.R

color_nodesR Documentation

Color network nodes by edge between cluster ID and phylum

Description

This function colors network nodes by phylum and by edge between cluster using the defaul bngal color schemes. A custom list of phylum colors can optionally be provided (see phylum.colors option).

Usage

color_nodes(binned.tax, clusters.to.color, phylum.colors)

Arguments

binned.tax

Output from bin_taxonomy()

clusters.to.color

Output from get_ebc_clusters()

phylum.colors

Optional Dataframe with hex color codes assigned to each phylum in the Silva 16S rRNA gene database (v. 138). Default color scheme provided, but if a custom color scheme is desired, columns must be the following:

  • phylum: name of phylum in Silva database

  • phylum_color: color hexcode, including ⁠#⁠

  • phylum_order: desired order for downstream plots


mselensky/bngal documentation built on June 3, 2024, 6:27 a.m.