Draw a Pie Chart
draw_pie.RdQuick pie chart from values and labels.
Usage
draw_pie(
values,
labels,
radius = "75%",
rose_type = NULL,
color = NULL,
title = NULL,
theme = NULL,
width = NULL,
height = NULL,
filename = NULL
)Arguments
- values
Numeric: Slice values.
- labels
Character: Slice labels.
- radius
Numeric or Character: Pie radius.
- rose_type
Optional Character {"radius", "area"}: Nightingale chart type.
- color
Optional Character: Series color palette — a single color string or character vector that overrides the theme palette for this chart.
colortakes precedence over the theme palette (it setsoption.color).- title
Optional Character: Chart title.
- theme
Optional Theme: Theme override. The palette inside the theme can be overridden per-chart with the
colorargument.- width
Optional Character or Numeric: Widget width.
- height
Optional Character or Numeric: Widget height.
- filename
Optional Character: If provided, save the widget to this file via
save_drawing().