Skip to content

Commit

Permalink
Add shield
Browse files Browse the repository at this point in the history
  • Loading branch information
showteeth committed Jun 23, 2022
1 parent 6693e2a commit 5ef5eaa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- `ggrosepie`: Create rose pie plot with single or two group variables.

<hr />

## Installation

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

<hr />

## Usage

### Preapre data
Expand Down Expand Up @@ -61,6 +63,7 @@ str(diamonds)
```

<hr />

### Pie plot

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

<hr />

### Donut plot

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

<hr />

### 3D pie plot

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

<hr />

### Nested pie/donut plot

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.
Expand Down Expand Up @@ -345,6 +351,7 @@ ggnestedpie(data = diamonds, group_key = c("cut", "color"), count_type = "full",
<img src="man/figures/README-nested_pie_blank_inner_outer-1.png" width="100%" />

<hr />

### Rose pie/donut plot

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

<hr />

## Contributing

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.
Expand Down

0 comments on commit 5ef5eaa

Please sign in to comment.