aest_donut: Donut plot

View source: R/aest_donut.R

aest_donutR Documentation

Donut plot

Description

takes a dataframe with a grouping variable and a measure and makes a donut.

Usage

aest_donut(
  df,
  y_var,
  group_var,
  center_text = NULL,
  center_text_size = 7,
  caption = NULL,
  lab_size = 5
)

Arguments

df

dataframe that contains

y_var

The measure being plotted

group_var

a grouping variable

center_text

what text to put in middle, Default: NULL

center_text_size

how large center font is, Default: 7

caption

user provided caption, Default: NULL

lab_size

font size for labels, Default: 5

Details

DETAILS

Value

a donut chart

See Also

label_percent

Examples

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

rpmartin/aest documentation built on Oct. 22, 2022, 6:33 p.m.