pie_templates: Display an example of a particular template
Description
This function allows to user to display a pie chart by selecting the template,
the number of groups of interest and whether to display the proportions or not,
in order to make it easier to choose between the many templates available in the
package tastypie.
Usage
pie_templates(template, n_groups = 4, perc = FALSE)
Value
A ggplot object.
In particular, this function returns a pie (or similar) chart according to the
choice of template and the other specifications provided.
Arguments
template
The chosen template.
n_groups
A number from 2 to 9.
perc
A logical value. Should the proportions be displayed?
Note that if the selected template is one of those to be used with
pie_bake_pro (listed in the pie_template_list_pro vector),
this argument is useless.