add_attr_to_dend: Add an attribute to dendrogram nodes

View source: R/required_scripts.R

add_attr_to_dendR Documentation

Add an attribute to dendrogram nodes

Description

Adds a specified attribute to labeled nodes of a dendrogram

Usage

add_attr_to_dend(dend, value, attribute = "label")

Arguments

dend

dendrogram of annotated cell types (with labeled nodes)

value

named vector of attributes to add (values = attribute value; name = dendrogram node labels)

attribute

name of attribute to add or update in "dend"

Value

The input dendrogram with the new added/updated attribute.


AllenInstitute/CCN documentation built on April 15, 2023, 10:48 p.m.