Book Image

Hands-On Data Science with R

By : Vitor Bianchi Lanzetta, Doug Ortiz, Nataraj Dasgupta, Ricardo Anjoleto Farias
Book Image

Hands-On Data Science with R

By: Vitor Bianchi Lanzetta, Doug Ortiz, Nataraj Dasgupta, Ricardo Anjoleto Farias

Overview of this book

R is the most widely used programming language, and when used in association with data science, this powerful combination will solve the complexities involved with unstructured datasets in the real world. This book covers the entire data science ecosystem for aspiring data scientists, right from zero to a level where you are confident enough to get hands-on with real-world data science problems. The book starts with an introduction to data science and introduces readers to popular R libraries for executing data science routine tasks. This book covers all the important processes in data science such as data gathering, cleaning data, and then uncovering patterns from it. You will explore algorithms such as machine learning algorithms, predictive analytical models, and finally deep learning algorithms. You will learn to run the most powerful visualization packages available in R so as to ensure that you can easily derive insights from your data. Towards the end, you will also learn how to integrate R with Spark and Hadoop and perform large-scale data analytics without much complexity.
Table of Contents (16 chapters)

Summary

Lots of graphical packages were covered in this chapter: ggplot2, ggvis, plotly, rCharts, and googleVis. With ggplot2 alone, you can easily draw high-quality plots. Combine it with other packages such as shiny or plotly to make interactive graphics.

The remaining packages—ggvis, plotly, rCharts, and googleVisare specialized in making interactive graphics. These are great for applications of all kinds and web pages. Even academic journals are encouraging writers to craft and publish interactive plots.

This chapter drew bubble plots and a choropleth using the different packages. There are lots of kind of plots we could have drawn using these same packages. Some examples are as follows:

  • Heatmaps
  • Scatterplots
  • Bar plots
  • Lollipop plots
  • Pizza charts

Crafting visualization is a great skill. Unless you are only dealing with databases—architecture and/or...