### Installing tastypie from CRAN (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet demonstrates how to install the stable version of the `tastypie` package directly from CRAN, the official R package repository. This is the recommended method for most users to get the latest stable release. ```R install.packages("tastypie") ``` -------------------------------- ### Installing tastypie Development Version from GitHub (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet shows how to install the development version of the `tastypie` package directly from its GitHub repository. This requires the `devtools` package to be installed first. It's useful for accessing the very latest features or bug fixes before they are released on CRAN. ```R # install.packages("devtools") devtools::install_github("PaoloDalena/tastypie") ``` -------------------------------- ### Loading the tastypie Package (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet demonstrates how to load the `tastypie` package into the current R session using the `library()` function. This makes all the package's functions available for use. It should be run after the package has been successfully installed. ```R library(tastypie) ``` -------------------------------- ### Displaying a Specific Pie Chart Template Example (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet uses `pie_templates()` to display an example of a specific template, 'eaten4', with a defined number of groups (9). This function allows users to preview how a particular template looks with custom parameters, aiding in template selection for their data. ```R pie_templates("eaten4", n_groups = 9) ``` -------------------------------- ### Creating a Themed Pie Chart with pie_bake (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet further illustrates the use of `pie_bake()` to create a pie chart with a different visual template ('red1'). Similar to the previous example, it uses the `example` data frame, displays percentages, and includes a title and group name. This highlights the flexibility in choosing different aesthetic themes for the pie chart. ```R pie_bake(data = example, template = "red1", perc = TRUE, title = "Perhaps", group_name = "She") ``` -------------------------------- ### Creating a Basic Pie Chart with pie_bake (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet demonstrates how to create a basic pie chart using the `pie_bake()` function from the `tastypie` package. It initializes a data frame `example` and then uses `pie_bake()` with a specified template ('basic4'), enabling percentage display, and setting a title and group name. The `data` parameter expects a data frame with two columns, typically category and value. ```R example <- data.frame( c("a. Is", "b. Not", "c. The", "d. Only", "e. One"), c(2.9, 6.9, 4.20, 13.12, 6.66) ) pie_bake(data = example, template = "basic4", perc = TRUE, title = "Perhaps", group_name = "She") ``` -------------------------------- ### Creating a Circular Barplot with pie_bake_pro (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet showcases `pie_bake_pro()` to generate a circular barplot using the 'cirbar3' template. It takes the `example` data frame and sets a title. This illustrates the function's capability to create various circular visualizations beyond traditional pie charts. ```R pie_bake_pro(data = example, template = "cirbar3", title = "Perhaps she") ``` -------------------------------- ### Creating an Extravagant Pie Chart with pie_bake_pro (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet demonstrates the use of `pie_bake_pro()` for creating more complex or 'extravagant' pie charts. It uses the `example` data frame and applies the 'dart5' template, along with a title and group name. This function offers advanced templates that might be less conventional but visually distinct. ```R pie_bake_pro(data = example, template = "dart5", title = "Perhaps", group_name = "She") ``` -------------------------------- ### Discovering Random Pie Chart Templates (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet executes `pie_discover()`, a function that generates a random combination of templates, group numbers, and features to display an example plot. It's useful for exploring the wide range of available visualization options within the `tastypie` package without manually specifying parameters. ```R pie_discover() ``` -------------------------------- ### Listing Basic Pie Chart Templates (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet accesses the `pie_template_list` vector, which contains the names of all basic templates compatible with the `pie_bake()` function. It provides a quick reference for users to see available options for standard pie chart visualizations. ```R pie_template_list # to be used with pie_bake() ``` -------------------------------- ### Creating a Circular Packing Chart with bubble_blow (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet demonstrates how to create a circular packing chart using the `bubble_blow()` function. It first defines a data frame `exblow` and then calls `bubble_blow()` with a 'bub2' template, specifying that percentages should be displayed 'below' the bubbles, and providing a title. This function is designed for visualizing hierarchical or part-to-whole relationships in a circular layout. ```R exblow <- data.frame( LETTERS[1:8], c(33, 24, 54, 12, 43, 88, 66, 78) ) bubble_blow(exblow, template = "bub2", perc = "below", title = "Easy bubbles:") ``` -------------------------------- ### Listing Advanced Pie Chart Templates (R) Source: https://github.com/paolodalena/tastypie/blob/main/README.md This snippet accesses the `pie_template_list_pro` vector, which lists all advanced templates designed for use with the `pie_bake_pro()` function. This provides a comprehensive list of more 'extravagant' or specialized circular chart templates available in the package. ```R pie_template_list_pro # to be used with pie_bake_pro() ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.