pie: Pie charts

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Alternative interface to graphics::pie with extra flexibility

Usage

1
2
3
4
5
6
7
8
9
pie(
  x,
  ...,
  border = colour,
  colour = color,
  color = NULL,
  col = fill,
  fill = NULL
)

Arguments

x

as for graphics::pie

...

additional arguments sent to graphics::pie

border, colour, color

alternative argument names for the border; may be a colour palette

col, fill

alternative argument names for the fill colour; may be a colour palette

Value

as for graphics::pie

Examples

1
2
## A random number of pie slices
pie(rep(1, rpois(1, 15)), fill = pal_blue2red, colour = "grey")

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.