add_colorbar: add_colorbar

View source: R/method-scale-color.R

add_colorbarR Documentation

add_colorbar

Description

add colorbar legend

Usage

add_colorbar(p, color, x = NULL, ymin = NULL, ymax = NULL, font.size = 4)

Arguments

p

tree view

color

output of scale_color function

x

x position

ymin

ymin

ymax

ymax

font.size

font size

Value

ggplot2 object

Author(s)

Guangchuang Yu


YuLab-SMU/ggtree documentation built on Nov. 3, 2024, 4:15 p.m.