Skip to contents

Data preparation

Parse hierarchical data and compute coordinates

sunburst_data()
Parse hierarchical input into sunburst/icicle data
drilldown()
Drill down into a subtree

Plot functions

Create sunburst, icicle, donut, and tree plots

sunburst()
Create a polar sunburst plot
icicle()
Create a rectangular icicle plot
donut()
Create a donut (ring) chart
ggtree()
Create a tree-style dendrogram plot

ggplot2 geom

Idiomatic ggplot2 layer for sunburst/icicle plots

geom_sunburst()
Sunburst layer for ggplot2

Themes

Custom themes for sunburst plots

theme_sunburst()
Sunburst theme

Multi-scale fill

Per-depth fill colour scales

sunburst_multifill()
Create a sunburst plot with per-depth fill scales
icicle_multifill()
Create an icicle plot with per-depth fill scales

Annotation layers

Add annotations to existing plots

highlight_nodes()
Highlight specific nodes in a sunburst or icicle plot
bars()
Add bar chart annotations to a sunburst or icicle plot
tile()
Add tile (heatmap) annotations to a sunburst or icicle plot

Utilities

Tree inspection

nw_print()
Print tree structure from Newick input

S3 methods

Methods for sunburst_data objects

`$`(<sunburst_data>)
Access sunburst_data components
print(<sunburst_data>)
Print a sunburst_data object
as.data.frame(<sunburst_data>)
Convert sunburst_data to data.frame
plot(<sunburst_data>)
Plot a sunburst_data object