Skip to contents

R6 class defining the configuration of a ggplot object for pie charts

Super class

tlf::PlotConfiguration -> PieChartPlotConfiguration

Public fields

colorPalette

color palette property from ggplot2

chartFont

Font object defining properties of text within pie chart

start

Offset of starting point from 12 o'clock in radians. Offset is applied clockwise or anticlockwise depending on value of direction

clockwiseDirection

logical defining if values are displayed in clockwise order

Methods


Method new()

Create a new PieChartPlotConfiguration object

Usage

PieChartPlotConfiguration$new(
  colorPalette = NULL,
  chartFont = NULL,
  start = 0,
  clockwiseDirection = TRUE,
  ...
)

Arguments

colorPalette

color palette property from ggplot2

chartFont

Font object defining properties of text within pie chart

start

Offset of starting point from 12 o'clock in radians. Offset is applied clockwise or anticlockwise depending on value of direction

clockwiseDirection

logical defining if values are displayed in clockwise order

...

parameters inherited from PlotConfiguration

Returns

A new PieChartPlotConfiguration object


Method clone()

The objects of this class are cloneable with this method.

Usage

PieChartPlotConfiguration$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.