ABSTRACT

The richly illustrated Interactive Web-Based Data Visualization with R, plotly, and shiny focuses on the process of programming interactive web graphics for multidimensional data analysis. It is written for the data analyst who wants to leverage the capabilities of interactive web graphics without having to learn web programming. Through many R code examples, you will learn how to tap the extensive functionality of these tools to enhance the presentation and exploration of data. By mastering these concepts and tools, you will impress your colleagues with your ability to quickly generate more informative, engaging, and reproducible interactive graphics using free and open source software that you can share over email, export to pdf, and more.

Key Features:

  • Convert static ggplot2 graphics to an interactive web-based form
  • Link, animate, and arrange multiple plots in standalone HTML from R
  • Embed, modify, and respond to plotly graphics in a shiny app
  • Learn best practices for visualizing continuous, discrete, and multivariate data
  • Learn numerous ways to visualize geo-spatial data

This book makes heavy use of plotly for graphical rendering, but you will also learn about other R packages that support different phases of a data science workflow, such as tidyr, dplyr, and tidyverse. Along the way, you will gain insight into best practices for visualization of high-dimensional data, statistical graphics, and graphical perception. The printed book is complemented by an interactive website where readers can view movies demonstrating the examples and interact with graphics.

chapter 1|20 pages

Introduction

part I|111 pages

Creating views

chapter 2|22 pages

Overview

chapter 3|36 pages

Scattered foundations

chapter 4|25 pages

Maps

chapter 5|8 pages

Bars and histograms

chapter 6|4 pages

Boxplots

chapter 7|5 pages

2D frequencies

chapter 8|7 pages

3D charts

part II|16 pages

Publishing views

chapter 9|1 pages

Introduction

chapter 10|3 pages

Saving and embedding HTML

chapter 11|4 pages

Exporting static images

chapter 12|4 pages

Editing views for publishing

part III|34 pages

Combining multiple views

chapter 13|21 pages

Arranging views

chapter 14|10 pages

Animating views

part IV|128 pages

Linking multiple views

chapter 15|3 pages

Introduction

chapter 16|49 pages

Client-side linking

chapter 17|72 pages

Server-side linking with shiny

part V|42 pages

Event handling in JavaScript

chapter 18|5 pages

Introduction

chapter 19|6 pages

Working with JSON

chapter 20|2 pages

Adding custom event handlers

chapter 21|15 pages

Supplying custom data

chapter 22|10 pages

Leveraging web technologies from R

part VI|67 pages

Various special topics

chapter 23|1 pages

Is plotly free and secure?

chapter 24|2 pages

Improving performance

chapter 25|13 pages

Controlling tooltips

chapter 26|5 pages

Control the modebar

chapter 27|3 pages

Working with colors

chapter 28|4 pages

Working with symbols and glyphs

chapter 29|4 pages

Embedding images

chapter 30|5 pages

Language support

chapter 31|4 pages

LaTeX rendering

chapter 32|6 pages

The data-plot-pipeline

chapter 33|10 pages

Improving ggplotly()

chapter 34|3 pages

Translating custom ggplot2 geoms