piechart_data: Piechat data

Description Usage Arguments Value Examples

View source: R/piechart-data.R

Description

Init piechart data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
piechart_data(
  data,
  mapping,
  facet = NULL,
  sort_by = NULL,
  decreasing = TRUE,
  start = 0,
  end = 360,
  steps = 0.01,
  ...
)

Arguments

data

a data frame.

mapping

default list of aesthetic mappings to use for plot.

facet

NULL or a formula.

sort_by

a character vector of variable name.

decreasing

logical. Should the sort order be increasing or decreasing?

start, end

offset of starting and ending point from 3 o'clock in degree.

steps

increment of the sequence in radians.

...

extra parameters.

Value

a data frame.

Examples

1
2
library(ggplot2)
piechart_data(mtcars, aes(value = wt))

Hy4m/piechart documentation built on Jan. 1, 2022, 5:13 p.m.