ggPie: Draw a pie plot

Description Usage Arguments Value Examples

View source: R/ggPieDonut.R

Description

Draw a pie plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
ggPie(
  data,
  mapping,
  addPieLabel = TRUE,
  showRatioPie = TRUE,
  showRatioPieAbove10 = TRUE,
  title = "",
  labelposition = 1,
  polar = TRUE,
  use.label = TRUE,
  use.labels = TRUE,
  interactive = FALSE
)

Arguments

data

A data.frame

mapping

Set of aesthetic mappings created by aes or aes_.

addPieLabel

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

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

use.label

Logical. Whether or not use column label in case of labelled data

use.labels

Logical. Whether or not use value labels in case of labelled data

interactive

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

Value

An interactive pie plot

Examples

1
2
3
4
5
6
require(ggplot2)
require(ggiraph)
require(plyr)
require(moonBook)
ggPie(data=browsers,aes(pies=browser,count=share))
ggPie(data=acs,aes(pies=Dx))

cardiomoon/ggiraphExtra documentation built on Oct. 9, 2020, 4:16 a.m.