pie.misc: Miscellaneous Settings

Description Usage Arguments Examples

View source: R/settings.R

Description

Pass miscellaneous options to pier object

Usage

1

Arguments

pier

object

...

variables all passed via ...

colors

list with options:

  • background: character color name or hex. Default is NULL results in tansparent

  • segments: character vector segment colors only works where not defined in data

  • segmentStroke: character color name or hex

gradient

list with options:

  • enabled: boolean

  • percentage: integer gradient percent

  • color: character color name or hex

canvasPadding

list with options:

  • top: integer pixels

  • right: integer pixels

  • bottom: integer pixels

  • left: integer pixels

pieCenterOffset

list with options:

  • x: integer pixels

  • y: integer pixels

cssPrefix

NULL

Examples

1
2
3
4
5
data.frame(value = c(40, 20, 30),
           label = c('red', 'green', 'blue'),
           color = c('red', 'green', 'blue')) %>%
  pier() %>%
  pie.misc(gradient  = list(enabled = TRUE))

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