pie.labels: Label Options

Description Usage Arguments Examples

View source: R/settings.R

Description

Pass Labelling options to pier object

Usage

1

Arguments

pier

object

...

all variables passed via ...

outer

list with options:

  • formatcharacter default 'label'

  • hideWhenLessThanPercentage: boolean default NULL

  • pieDistance: numeric pixels

inner

list with options:

  • format: character default 'percentage'

  • hideWhenLessThanPercentage: boolean default NULL

mainLabel

list with options:

  • color: character default '#333333'

  • font: character default 'arial'

  • fontSize: integer pixels

percentage

list with options:

  • color: character default '#dddddd'

  • font: character default 'arial'

  • fontSize: integer pixels

  • decimalPlaces: integer

value

list with options:

  • color: character default '#cccc44'

  • font: character default 'arial'

  • fontSize: integer pixels

lines

list with options:

  • enabled: boolean

  • style: character default

  • color: character "segment" or a hex color

Examples

1
2
3
4
5
6
data.frame(value = c(40, 20, 30),
           label = c('red', 'green', 'blue'),
           color = c('red', 'green', 'blue')) %>%
  pier() %>%
  pie.labels(mainLabel = list(font = 'Impact',
                              fontSize = 14))

mrjoh3/pier documentation built on June 18, 2021, 3:34 a.m.