nodepie: nodepie

View source: R/inset.R

nodepieR Documentation

nodepie

Description

generate a list of pie charts for results of ancestral stat reconstruction

Usage

nodepie(
  data,
  cols,
  color,
  alpha = 1,
  outline.color = "transparent",
  outline.size = 0
)

Arguments

data

a data.frame of stats with an additional column of node number named "node"

cols

columns of the data.frame that store the stats

color

set color of bars

alpha

set transparency of the charts

outline.color

color of outline

outline.size

size of outline

Value

list of ggplot objects

Author(s)

Guangchuang Yu


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