helper_funs: Helper Functions

Description Usage Arguments Value Examples

Description

Helper functions for handle piechart data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
get_polygon_data(x, ...)

get_label_data(x, ...)

calc_text_angle(.angle, facing = "clockwise", nice_facing = TRUE)

filter_generate(...)

pie_label(
  .label = NA,
  .ratio = NA,
  percent = TRUE,
  digits = 2,
  wrap = "(",
  ...
)

Arguments

x

a piechart data.

...

extra parameters passed on to dplyr::filter().

.angle

the angle in radians.

facing

one of clockwise, binding or normal.

nice_facing

logical value.

.label

character vector.

.ratio

numeric vector.

percent

logical, if TRUE will convert ratio to percent.

digits

integer indicating the number of decimal places.

wrap

symbols.

Value

a data frame.

Examples

1
2
3

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