PieDonut2: Plot a pie and donut chart

View source: R/Visualizations_PieDonut.R

PieDonut2R Documentation

Plot a pie and donut chart

Description

Plot a pie and donut chart

Usage

PieDonut2(
  data,
  mapping,
  start = getOption("PieDonut.start", 0),
  addPieLabel = TRUE,
  addDonutLabel = TRUE,
  showRatioDonut = TRUE,
  showRatioPie = TRUE,
  ratioByGroup = TRUE,
  showRatioThreshold = getOption("PieDonut.showRatioThreshold", 0.02),
  labelposition = getOption("PieDonut.labelposition", 2),
  labelpositionThreshold = 0.1,
  r0 = getOption("PieDonut.r0", 1.2),
  r1 = getOption("PieDonut.r1", 1),
  r2 = getOption("PieDonut.r2", 1.2),
  explode = NULL,
  selected = NULL,
  explodePos = 0.1,
  color = "white",
  pieAlpha = 0.8,
  donutAlpha = 1,
  maxx = NULL,
  showPieName = TRUE,
  showDonutName = FALSE,
  title = NULL,
  pieLabelSize = 4,
  donutLabelSize = 3,
  titlesize = 5,
  explodePie = TRUE,
  explodeDonut = FALSE,
  use.label = TRUE,
  use.labels = TRUE,
  family = getOption("PieDonut.family", "")
)

Arguments

data

Data to plot.

mapping

Mapping for colors.

start

Starting angle for pie chart.

addPieLabel

Add labels to pie chart.

addDonutLabel

Add labels to donut chart.

showRatioDonut

Show ratios in donut chart.

showRatioPie

Show ratios in pie chart.

ratioByGroup

Show ratio by group.

showRatioThreshold

Threshold for showing ratios.

labelposition

Label position.

labelpositionThreshold

Threshold for label position.

r0

Inner radius of donut chart.

explode

Explode pie chart.

selected

Selected data to highlight.

explodePos

Explode position.

color

Color for pie chart.

pieAlpha

Alpha for pie chart.

donutAlpha

Alpha for donut chart.

maxx

Maximum value for x axis.

showPieName

Show name for pie chart.

showDonutName

Show name for donut chart.

title

Plot title.

pieLabelSize

Font size for pie chart labels.

donutLabelSize

Font size for donut chart labels.

titlesize

Font size for plot title.

explodePie

Explode pie chart.

explodeDonut

Explode donut chart.

use.label

Use label.

use.labels

Use labels.

family

Font family.

Value

A pie and donut chart.


eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.