Skip to contents

A ggplot2 theme tailored for sunburst and donut charts. Based on ggplot2::theme_void() with centred bold title, legend at bottom, and tidy margins.

Usage

theme_sunburst(base_size = 11, base_family = "")

Arguments

base_size

Base font size. Default 11.

base_family

Base font family. Default "".

Value

A ggplot2 ggplot2::theme() object.

See also

Examples

sb <- sunburst_data("((a, b, c), (d, e));")
sunburst(sb, fill = "depth") + theme_sunburst()