R Data Visualization Recipes: A cookbook with 65+ data visualization recipes for smarter decision-making
Vitor Bianchi Lanzetta
- Use R's popular packages—such as ggplot2, ggvis, ggforce, and more—to create custom, interactive visualization solutions.
- Create, design, and build interactive dashboards using Shiny
- A highly practical guide to help you get to grips with the basics of data visualization techniques, and how you can implement them using R
R is an open source language for data analysis and graphics that allows users to load various packages for effective and better data interpretation. Its popularity has soared in recent years because of its powerful capabilities when it comes to turning different kinds of data into intuitive visualization solutions.
This book is an update to our earlier R data visualization cookbook with 100 percent fresh content and covering all the cutting edge R data visualization tools. This book is packed with practical recipes, designed to provide you with all the guidance needed to get to grips with data visualization using R. It starts off with the basics of ggplot2, ggvis, and plotly visualization packages, along with an introduction to creating maps and customizing them, before progressively taking you through various ggplot2 extensions, such as ggforce, ggrepel, and gganimate. Using real-world datasets, you will analyze and visualize your data as histograms, bar graphs, and scatterplots, and customize your plots with various themes and coloring options. The book also covers advanced visualization aspects such as creating interactive dashboards using Shiny
By the end of the book, you will be equipped with key techniques to create impressive data visualizations with professional efficiency and precision.
What you will learn
- Get to know various data visualization libraries available in R to represent data
- Generate elegant codes to craft graphics using ggplot2, ggvis and plotly
- Add elements, text, animation, and colors to your plot to make sense of data
- Deepen your knowledge by adding bar-charts, scatterplots, and time series plots using ggplot2
- Build interactive dashboards using Shiny.
- Color specific map regions based on the values of a variable in your data frame
- Create high-quality journal-publishable scatterplots
- Create and design various three-dimensional and multivariate plots
About the Author
Vitor Bianchi Lanzetta is an R enthusiast who uses R both for his thesis and in his spare time. Vitor fitted several neural networks models to predict commodity prices. As a graduate student he was called to join the university's team in the CFA Challenge; here, among other things he programmed a Monte Carlo simulation from his team's model by using R.
Table of Contents
- Installing and Configuration
- Plotting two continuous variables
- Plotting a discrete predictor & a continuous response
- Plotting One Variable
- Making other bivariate plots
- Creating maps
- Designing Three-Dimensional Plots
- Using theming packages
- Designing more specialized plots
- Making Interactive Plots
- Building Shiny Dashboards