ggPieDonut: Draw a Pie and Donut plot

Description Usage Arguments Value Examples

Description

Draw a Pie and Donut plot

Usage

1
2
3
4
ggPieDonut(data = acs, pies = "Dx", donuts = "smoking", count = NULL,
  addPieLabel = TRUE, addDonutLabel = TRUE, showRatioDonut = TRUE,
  showRatioPie = TRUE, showRatioPieAbove10 = TRUE, title = "",
  labelposition = 1, polar = TRUE, interactive = FALSE)

Arguments

data

A data.frame

pies

A character string of column name be assigned to the Pies

donuts

A character string of column name be assigned to the Donuts

count

A character string of column name uses as count

addPieLabel

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

addDonutLabel

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

showRatioDonut

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

showRatioPie

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

showRatioPieAbove10

A logical value. If TRUE, labels are added to the Pies with ratio above 10.

title

Plot title

labelposition

A number indicating the label position

polar

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

interactive

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

Value

An interactive Pie and Donut plot

Examples

1
2
3
4
5
6
7
#ggPieDonut(mtcars,"am","cyl")
#p<-ggPieDonut(mtcars,"am","cyl")
#ggiraph(code=print(p))
#ggPieDonut(polar=FALSE)
#ggPieDonut(mtcars,"cyl","am")
#ggPieDonut(browsers,"browser","version","share",
#  title="Browser market share 2011",interactive=TRUE)

cardiomoon/moonBook2 documentation built on May 13, 2019, 12:40 p.m.