available_templates

Available templates for pie_bake()

Here you can find a comprehensive visualization of all the possible templates that you can access using pie_bake().
A fairly simple data frame with 5 groups will be considered. Percentages will be displayed (i.e. the argument perc will be fixed to TRUE), with the title corresponding to the template name and a generic group name (i.e. “groups”).

The same for the pie_bake_pro() function can be found by scrolling down.

library(tastypie)
#>             $$  $$  $$
#>           __||__||__||__
#>          | * * * * * * *|
#>          |* * * * * * * |
#>          | * * * * * * *|
#>          |______________|
#>  _              _              _
#> | |_  ___  ___ | |_  _ _  ___ |_| ___
#> |  _|| .'||_ -||  _|| | || . || || -_|
#> |_|  |__,||___||_|  |_  ||  _||_||___|
#>                     |___||_|
ex <- data.frame(
  LETTERS[1:5],
  c(65, 24, 54, 12, 43)
)

for(i in pie_template_list){
  print(pie_bake(ex, template = i, perc = TRUE, title = i))
}

Available templates for pie_bake_pro()

Here we don’t have to set the argument perc (there are some templates that display percentages anyways).

ex <- data.frame(
  LETTERS[1:5],
  c(65, 24, 54, 12, 43)
)

for(i in pie_template_list_pro){
  print(pie_bake_pro(ex, template = i, title = i))
}