Learn R Programming

ggpie - A ggplot2 extension to create pie, donut and rose pie plot

Introduction

ggpie aims to create pie (2D and 3D), donut and rose pie plot with the ggplot2 plotting system which implemented the grammar of graphics. It contains five main functions:

  • ggpie: Create 2D pie plot with single group variable.
  • ggdonut: Create 2D donut plot with single group variable.
  • ggnestedpie: Create 2D nested pie plot with two group variables.
  • ggpie3D: Create 3D pie plot with single group variable.
  • ggrosepie: Create rose pie plot with single or two group variables.

Installation

You can install the released version of ggpie from CRAN with:

install.packages("ggpie")

Or install the package via the Github repository:

# install.package("remotes")   #In case you have not installed it.
remotes::install_github("showteeth/ggpie")

In general, it is recommended to install from Github repository (update more timely).

Citation

citation("ggpie")
#> 
#> To cite ggpie in publications use:
#> 
#>   Yabing Song (2022). ggpie: Create Pie, Donut and Rose Pie Plot with
#>   'ggplot2'. R package version 0.2.2.
#>   https://CRAN.R-project.org/package=ggpie
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Manual{,
#>     title = {ggpie: Create Pie, Donut and Rose Pie Plot with 'ggplot2'.},
#>     author = {Yabing Song},
#>     note = {R package version 0.2.2},
#>     year = {2022},
#>     url = {https://CRAN.R-project.org/package=ggpie},
#>   }

Contributing

Please note that the ggpie project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('ggpie')

Monthly Downloads

85

Version

0.2.5

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Yabing Song

Last Published

November 16th, 2022

Functions in ggpie (0.2.5)

ggrosepie

Create rose pie plot.
ggpie

Create Pie plot.
ggpie3D

Create 3D pie plot.
ggdonut

Create donut plot.
ggnestedpie

Create nested pie plot.