Learn R Programming

ggiraphExtra (version 0.1.0)

ggDonut: Draw a Donut plot

Description

Draw a Donut plot

Usage

ggDonut(data, mapping, addDonutLabel = TRUE, showRatio = TRUE,
  polar = TRUE, labelposition = 1, title = "", interactive = FALSE)

Arguments

data

A data.frame

mapping

Set of aesthetic mappings created by aes or aes_.

addDonutLabel

A logical value. If TRUE, labels are added to the Donuts

showRatio

A logical value. If TRUE, Ratios are added to the DonutLabels

polar

A logical value. If TRUE, coord_polar() function will be added

labelposition

A number indicating the label position

title

Plot title

interactive

A logical value. If TRUE, an interactive plot will be returned

Value

An interactive Pie and Donut plot

Examples

Run this code
# NOT RUN {
require(ggplot2)
require(ggiraph)
require(plyr)
ggDonut(browsers,aes(donuts=version,count=share))
# }

Run the code above in your browser using DataLab