Skip to content

Commit 6693e2a

Browse files
committed
Add shield
1 parent b5aa00f commit 6693e2a

20 files changed

+9
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ inst/doc
22
.Rhistory
33
.Rbuildignore
44
.Rproj*
5+
.Rproj.user

README.Rmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ knitr::opts_chunk$set(
1717

1818
<img src = "man/figures/ggpie_hex.png" align = "right" width = "200"/>
1919

20+
[![CRAN](https://www.r-pkg.org/badges/version/ggpie?color=orange)](https://cran.r-project.org/package=ggpie)
21+
[![CRAN_download](http://cranlogs.r-pkg.org/badges/grand-total/ggpie?color=blue)](https://cran.r-project.org/package=ggpie)
22+
![License](https://img.shields.io/badge/license-MIT-green)
23+
[![CODE_SIZE](https://img.shields.io/github/languages/code-size/showteeth/ggpie.svg)](https://github.com/showteeth/ggpie)
24+
25+
2026
## Introduction
2127
`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:
2228

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
<img src = "man/figures/ggpie_hex.png" align = "right" width = "200"/>
66

7+
[![CRAN](https://www.r-pkg.org/badges/version/ggpie?color=orange)](https://cran.r-project.org/package=ggpie) [![CRAN\_download](http://cranlogs.r-pkg.org/badges/grand-total/ggpie?color=blue)](https://cran.r-project.org/package=ggpie) ![License](https://img.shields.io/badge/license-MIT-green) [![CODE\_SIZE](https://img.shields.io/github/languages/code-size/showteeth/ggpie.svg)](https://github.com/showteeth/ggpie)
8+
79
## Introduction
810

911
`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:
@@ -15,7 +17,6 @@
1517
- `ggrosepie`: Create rose pie plot with single or two group variables.
1618

1719
<hr />
18-
1920
## Installation
2021

2122
You can install the released version of `ggpie` from [CRAN](https://CRAN.R-project.org) with:
@@ -32,7 +33,6 @@ remotes::install_github("showteeth/ggpie")
3233
```
3334

3435
<hr />
35-
3636
## Usage
3737

3838
### Preapre data
@@ -61,7 +61,6 @@ str(diamonds)
6161
```
6262

6363
<hr />
64-
6564
### Pie plot
6665

6766
#### no label
@@ -142,7 +141,6 @@ ggpie(data = diamonds, group_key = "cut", count_type = "full",
142141
<img src="man/figures/README-pie_threashold_horizon_in-1.png" width="100%" />
143142

144143
<hr />
145-
146144
### Donut plot
147145

148146
#### no label
@@ -239,7 +237,6 @@ ggdonut(data = diamonds, group_key = "cut", count_type = "full",
239237
<img src="man/figures/README-donut_threashold_horizon_in_no_split-1.png" width="100%" />
240238

241239
<hr />
242-
243240
### 3D pie plot
244241

245242
``` r
@@ -267,7 +264,6 @@ cowplot::plot_grid(p1,p2,p3,p4,ncol = 2)
267264
<img src="man/figures/README-pie3d-1.png" width="100%" />
268265

269266
<hr />
270-
271267
### Nested pie/donut plot
272268

273269
It is often the case that we have **two categorical variables** and then need to plot for both of them, `ggnestedpie` is designed to deal with this.
@@ -349,7 +345,6 @@ ggnestedpie(data = diamonds, group_key = c("cut", "color"), count_type = "full",
349345
<img src="man/figures/README-nested_pie_blank_inner_outer-1.png" width="100%" />
350346

351347
<hr />
352-
353348
### Rose pie/donut plot
354349

355350
#### single variable
@@ -447,7 +442,6 @@ cowplot::plot_grid(p1,p2)
447442
<img src="man/figures/README-rose_pie_two_with_tick_specific_break-1.png" width="100%" />
448443

449444
<hr />
450-
451445
## Contributing
452446

453447
Please note that the `ggpie` project is released with a [Contributor Code of Conduct](https://www.contributor-covenant.org/version/1/0/0/code-of-conduct/). By contributing to this project, you agree to abide by its terms.
-38 Bytes
Loading
-115 Bytes
Loading
7 Bytes
Loading
-5 Bytes
Loading
4 Bytes
Loading
-1 Bytes
Loading
-1 Bytes
Loading

0 commit comments

Comments
 (0)