add_colorbar {ggtree} | R 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

[Package ggtree version 1.10.5 Index]