Carson Sievert, the author and maintainer of the plotly R package, wrote this book for data analysts who want the benefits of interactive web graphics without first having to learn web programming.
It focuses on the practical process of creating interactive, web-based visualizations from R for exploring and presenting multidimensional data, and on sharing the results over email, as standalone HTML, or as static exports.
The book is driven by R code examples throughout.
It starts with the two main ways to create plotly graphics, plot_ly() and ggplotly(), then moves on to publishing, arranging, and animating views, and to linking multiple views together.
Client-side linking lets you build graphical queries that run entirely in the browser, while server-side linking uses shiny to respond to plotly events.
Later chapters show how to add custom behavior with JavaScript and cover practical details such as tooltips, colors, performance, and LaTeX rendering.
Along the way you also meet tidyverse tools such as dplyr and tidyr, and best practices for statistical graphics, graphical perception, and visualizing high-dimensional data.
You will learn how to:
- Turn static
ggplot2graphics into interactive web graphics - Visualize continuous, discrete, multivariate, and geospatial data
- Save, embed, and export interactive views for publication
- Arrange, animate, and link multiple plots in standalone HTML
- Embed plotly graphics in Shiny apps and respond to user events
- Extend graphics with custom JavaScript event handlers
An online version of the book is free to read and continues to evolve between printings.
