add_smart_legend: Add smart legend to a tree plot

View source: R/legend-smart.R

add_smart_legendR Documentation

Add smart legend to a tree plot

Description

Add smart legend to a tree plot

Usage

add_smart_legend(p, colors, rank_name, position, nrow, ncol)

Arguments

p

ggplot object

colors

Named color vector

rank_name

Display name for the rank

position

Position: cardinal direction or length-2 numeric vector

nrow

User-specified rows

ncol

User-specified columns

Value

ggplot object


Rclade documentation built on Sept. 26, 2026, 5:07 p.m.