View source: R/Visualizations_PieDonut.R
PieDonut2 | R Documentation |
Plot a pie and donut chart
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", "")
)
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. |
A pie and donut chart.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.