What’s New in R: November 4, 2024
Welcome to this week’s edition of What’s New in R! This week, we’re featuring a package for creating Sankey diagrams, a tutorial on creating beautiful tables with flextable, and a video guide on using ChatGPT for data analysis in R. Let’s dive in!
{ggsankeyfier}
The {ggsankeyfier} package brings the power of Sankey diagrams to the ggplot2 ecosystem. Developed by Pepijn de Vries, this package allows you to easily create complex flow diagrams that visualize the distribution of a variable across multiple categorical dimensions. With its seamless integration into the ggplot2 framework, {ggsankeyfier} makes it simple to customize your Sankey diagrams using familiar ggplot2 syntax and themes.
Use of flextable
In this blog post, Danielle Navarro demonstrates how to create stunning tables using the {flextable} package in R ({flextable} is particularly great if you render to Microsoft Word, an area where the {gt} package is lacking). She walks through various techniques for customizing table appearance, including styling headers, adding borders, and incorporating images. Navarro’s tutorial not only covers the basics but also delves into advanced features, making it an invaluable resource for anyone looking to elevate their table-making.
Using ChatGPT for Data Analysis in R
In this YouTube video, Rebecca Barter discusses how to effectively use GitHub Copilot, a code completion tool, particularly in R and VS Code environments. She shares her experiences and insights on setting up Copilot, its functionalities, and how it can enhance coding efficiency. The presentation includes a live demonstration showcasing Copilot’s capabilities in R Studio and VS Code, highlighting its strengths in code suggestion, completion, and documentation. Barter also addresses the limitations of Copilot, emphasizing that while it can be a powerful tool for experienced programmers, it may not be as beneficial for beginners who are still learning the basics of programming.
If you enjoyed this issue of What’s New In R, please share it with a friend! And if they want to get What’s New in R directly in their inbox, they can sign up on the R for the Rest of Us website.
Got any ideas for resources I should feature in future issues of What’s New in R? Leave a comment below!
Sign up for the newsletter
Get blog posts like this delivered straight to your inbox.
You need to be signed-in to comment on this post. Login.