Doughnut Plots

A simple implementation of doughnut plots - pie charts with a blank center. The package is named after Homer Simpson - arguably the best-known lover of doughnuts.

Zenodo DOI badge

Doughnut plots for R

v <- runif(5)
names(v) <- LETTERS[1:length(v)]
par(mfrow=c(2, 3), mar=c(0, 0, 0, 0), oma=c(0, 0, 5, 0))
PlotDoughnut(v, centre.text='Doughnut', centre.cex=1.8, labels.cex=2)
PlotDoughnut(v, centre.text='Counter-clockwise', centre.cex=1.8, labels.cex=2,
PlotDoughnut(v, centre.text=~Origin~at~90^o, centre.cex=1.8, labels.cex=2,
PlotDoughnut(v, centre.text='Half nut', centre.cex=1.8, labels.cex=2, to.degrees=180,
PlotDoughnut(v, centre.text='Side nut', centre.cex=1.8, labels.cex=2, to.degrees=180,
PlotDoughnut(v, centre.text='Taken a bite', centre.cex=1.8, labels.cex=2,
             to.degrees=270, origin=-45, clockwise=FALSE)
title(main='You doughnut', outer=TRUE, cex.main=3)

Example doughnut plot


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1-3 by Lawrence Hudson, 5 years ago

Browse source code at

Authors: Lawrence Hudson

Documentation:   PDF Manual  

GPL-2 license

See at CRAN