Learn R Programming

ggtree (version 1.2.1)

geom_tree: geom_tree

Description

add tree layer

Usage

geom_tree(layout = "rectangular", ...)

Arguments

layout
one of 'rectangular', 'slanted', 'circular', 'radial' or 'unrooted'
...
additional parameter

Value

tree layer

Examples

Run this code
require(ape)
tr <- rtree(10)
require(ggplot2)
ggplot(tr) + geom_tree()

Run the code above in your browser using DataLab