R Data Visualization Cookbook

Over 80 recipes to analyze data and create stunning visualizations with R

R Data Visualization Cookbook

Cookbook
Atmajitsinh Gohil

2 customer reviews
Over 80 recipes to analyze data and create stunning visualizations with R
$26.99
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook

Get unlimited access to this and 3,500 other courses today!

With unlimited access to a constantly growing library of over 3,500 courses, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

+ Collection
Free Sample

Book Details

ISBN 139781783989508
Paperback236 pages

Book Description

R is an open source language for data analysis and graphics. It is platform-independent and allows users to load various packages as well as develop their own packages to interpret data better.

This book is packed with practical recipes, designed to provide you with all the guidance needed to get to grips with data visualization with R. It starts off with the basics of R plots and an introduction to heat maps and customizing them, before gradually taking you through creating interactive maps using the googleVis package, generating choropleth maps and contouring maps, bubble plots, and pie charts. You will then learn how to animate 2D and 3D plots in R. By the end of the book, you will be equipped with the key techniques to create impressive data visualizations with professional efficiency and precision.

Table of Contents

Chapter 1: A Simple Guide to R
Installing packages and getting help in R
Data types in R
Special values in R
Matrices in R
Editing a matrix in R
Data frames in R
Editing a data frame in R
Importing data in R
Exporting data in R
Writing a function in R
Writing if else statements in R
Basic loops in R
Nested loops in R
The apply, lapply, sapply, and tapply functions
Using par to beautify a plot in R
Saving plots
Chapter 2: Basic and Interactive Plots
Introduction
Introducing a scatter plot
Scatter plots with texts, labels, and lines
Connecting points in a scatter plot
Generating an interactive scatter plot
A simple bar plot
An interactive bar plot
A simple line plot
Line plot to tell an effective story
Generating an interactive Gantt/timeline chart in R
Merging histograms
Making an interactive bubble plot
Constructing a waterfall plot in R
Chapter 3: Heat Maps and Dendrograms
Introduction
Constructing a simple dendrogram
Creating dendrograms with colors and labels
Creating a heat map
Generating a heat map with customized colors
Generating an integrated dendrogram and a heat map
Creating a three-dimensional heat map and a stereo map
Constructing a tree map in R
Chapter 4: Maps
Introduction
Introducing regional maps
Introducing choropleth maps
A guide to contour maps
Constructing maps with bubbles
Integrating text with maps
Introducing shapefiles
Creating cartograms
Chapter 5: The Pie Chart and Its Alternatives
Introduction
Generating a simple pie chart
Constructing pie charts with labels
Creating donut plots and interactive plots
Generating a slope chart
Constructing a fan plot
Chapter 6: Adding the Third Dimension
Introduction
Constructing a 3D scatter plot
Generating a 3D scatter plot with text
A simple 3D pie chart
A simple 3D histogram
Generating a 3D contour plot
Integrating a 3D contour and a surface plot
Animating a 3D surface plot
Chapter 7: Data in Higher Dimensions
Introduction
Constructing a sunflower plot
Creating a hexbin plot
Generating interactive calendar maps
Creating Chernoff faces in R
Constructing a coxcomb plot in R
Constructing network plots
Constructing a radial plot
Generating a very basic pyramid plot
Chapter 8: Visualizing Continuous Data
Introduction
Generating a candlestick plot
Generating interactive candlestick plots
Generating a decomposed time series
Plotting a regression line
Constructing a box and whiskers plot
Generating a violin plot
Generating a quantile-quantile plot (QQ plot)
Generating a density plot
Generating a simple correlation plot
Chapter 9: Visualizing Text and XKCD-style Plots
Introduction
Generating a word cloud
Constructing a word cloud from a document
Generating a comparison cloud
Constructing a correlation plot and a phrase tree
Generating plots with custom fonts
Generating an XKCD-style plot
Chapter 10: Creating Applications in R
Introduction
Creating animated plots in R
Creating a presentation in R
A basic introduction to API and XML
Constructing a bar plot using XML in R
Creating a very simple shiny app in R

What You Will Learn

  • Generate various plots in R using the basic R plotting techniques
  • Utilize R packages to add context and meaning to your data
  • Design interactive visualizations and integrate them on your website or blog
  • Communicate using visualization techniques, optimal for the underlying data being used as input
  • Create presentations and learn the basics of creating apps in R for your audience
  • Introduce users to basic R functions and data manipulation techniques while creating meaningful visualizations
  • Add elements, text, animation, and colors to your plot to make sense of data

Authors

Table of Contents

Chapter 1: A Simple Guide to R
Installing packages and getting help in R
Data types in R
Special values in R
Matrices in R
Editing a matrix in R
Data frames in R
Editing a data frame in R
Importing data in R
Exporting data in R
Writing a function in R
Writing if else statements in R
Basic loops in R
Nested loops in R
The apply, lapply, sapply, and tapply functions
Using par to beautify a plot in R
Saving plots
Chapter 2: Basic and Interactive Plots
Introduction
Introducing a scatter plot
Scatter plots with texts, labels, and lines
Connecting points in a scatter plot
Generating an interactive scatter plot
A simple bar plot
An interactive bar plot
A simple line plot
Line plot to tell an effective story
Generating an interactive Gantt/timeline chart in R
Merging histograms
Making an interactive bubble plot
Constructing a waterfall plot in R
Chapter 3: Heat Maps and Dendrograms
Introduction
Constructing a simple dendrogram
Creating dendrograms with colors and labels
Creating a heat map
Generating a heat map with customized colors
Generating an integrated dendrogram and a heat map
Creating a three-dimensional heat map and a stereo map
Constructing a tree map in R
Chapter 4: Maps
Introduction
Introducing regional maps
Introducing choropleth maps
A guide to contour maps
Constructing maps with bubbles
Integrating text with maps
Introducing shapefiles
Creating cartograms
Chapter 5: The Pie Chart and Its Alternatives
Introduction
Generating a simple pie chart
Constructing pie charts with labels
Creating donut plots and interactive plots
Generating a slope chart
Constructing a fan plot
Chapter 6: Adding the Third Dimension
Introduction
Constructing a 3D scatter plot
Generating a 3D scatter plot with text
A simple 3D pie chart
A simple 3D histogram
Generating a 3D contour plot
Integrating a 3D contour and a surface plot
Animating a 3D surface plot
Chapter 7: Data in Higher Dimensions
Introduction
Constructing a sunflower plot
Creating a hexbin plot
Generating interactive calendar maps
Creating Chernoff faces in R
Constructing a coxcomb plot in R
Constructing network plots
Constructing a radial plot
Generating a very basic pyramid plot
Chapter 8: Visualizing Continuous Data
Introduction
Generating a candlestick plot
Generating interactive candlestick plots
Generating a decomposed time series
Plotting a regression line
Constructing a box and whiskers plot
Generating a violin plot
Generating a quantile-quantile plot (QQ plot)
Generating a density plot
Generating a simple correlation plot
Chapter 9: Visualizing Text and XKCD-style Plots
Introduction
Generating a word cloud
Constructing a word cloud from a document
Generating a comparison cloud
Constructing a correlation plot and a phrase tree
Generating plots with custom fonts
Generating an XKCD-style plot
Chapter 10: Creating Applications in R
Introduction
Creating animated plots in R
Creating a presentation in R
A basic introduction to API and XML
Constructing a bar plot using XML in R
Creating a very simple shiny app in R

Book Details

ISBN 139781783989508
Paperback236 pages
Read More
From 2 reviews

Read More Reviews