Skip to content

Instantly share code, notes, and snippets.

#' Doughnut plot
#'
#' Draw a doughnut plot
#'
#' This function draws a pie chart with a hole; a doughnut plot
#' The doughnut plot is based on the pie plot, see \code{\link{pie}}.
#'
#' @param x a vector of non-negative numerical quantities.
#' The values in \code{x} are displayed as the areas of
#' doughnut slices.