README.md

donutchart

Donut chart for R.

A donut chart is similar to a pie chart, but uses the center (i.e., the donut whole) as a label display.

The following are easily customizable:

Usage

library(tidyverse)
library(donutchart)

as_tibble(Titanic) %>% count(Class, wt=n) %>% rename(PassengersCount=nn) %>%
  donut_chart(Class, PassengersCount, "Class")

alt text

library(tidyverse)
library(donutchart)

as_tibble(Titanic) %>% count(Class, wt=n) %>% rename(PassengersCount=n) %>%
  donut_chart(Class, PassengersCount, includePercentage=F,
              "Class\nby Passenger Type",
              centerLabelSize=12, centerColor="black",
              startColor="#668391", endColor="#8C4A56")

alt text

How to Install

Run the following in your R console:

library(devtools)
install_github("Blake-Madden/donutchart")


Blake-Eryx/donutchart documentation built on July 24, 2021, 6:41 a.m.