add_node_labels: Add node labels

View source: R/clustree.R

add_node_labelsR Documentation

Add node labels

Description

Add node labels to a clustering tree plot with the specified aesthetics.

Usage

add_node_labels(
  node_label,
  node_colour,
  node_label_size,
  node_label_colour,
  node_label_nudge,
  allowed
)

Arguments

node_label

the name of a metadata column for node labels

node_colour

either a value indicating a colour to use for all nodes or the name of a metadata column to colour nodes by

node_label_size

size of node label text

node_label_colour

colour of node_label text

node_label_nudge

numeric value giving nudge in y direction for node labels

allowed

vector of allowed node attributes to use as aesthetics


lazappi/clustree documentation built on Nov. 9, 2023, 7:54 p.m.