Visualizing Big Data with Trelliscope in R
Learn to build interactive Trelliscope displays in R that sort and filter faceted ggplot2 panels, with custom cognostics and a bike-share case study.
Trelliscope, available in R through the trelliscopejs package, turns faceting into interactive displays that can be sorted, filtered and explored panel by panel when data splits into more groups than a single screen can show. Summary statistics, fixes for overplotting and small multiples in ggplot2 come first. Cognostics, the per-panel metrics behind sorting and filtering, then shape displays of countries, stock prices and Pokemon images.
What You Will Achieve
- Choose between summary plots, subsets and small multiples when a dataset is too large for one chart
- Turn a faceted ggplot2 plot into an interactive Trelliscope display for you and your colleagues to explore
- Write custom cognostics so each panel can be sorted and filtered by a meaningful metric
- Explore a large real-world dataset by moving between summary statistics and detailed per-route panels
Program Overview
Strategies for Visualizing Big Data in ggplot2
Cab ride data is plotted in plain ggplot2 with summaries, subsets and faceting, setting up the move to Trelliscope.
- Daily ride counts and fare distributions
- Techniques for overplotting
- Small multiples with faceting
Trelliscope Displays with ggplot2 and the Tidyverse
Faceting with trelliscopejs grows into a tidyverse workflow built on grouping, nesting and custom cognostics.
- Faceting gapminder by country
- Interacting with and customizing displays
- Cognostics from nested data frames
- Stock price and Pokemon image displays
Case Study: Montreal BIXI Bike Data
A closing analysis of 2017 Montreal bike rides works through summary plots of daily and hourly use and Trelliscope views of popular routes.
- Ride counts by day and time of day
- Membership and weekday effects
- Route summary statistics for the top 100 routes
Certificate Awarded (Paid)
Job Outlook
Interactive faceted displays like these serve data analysis and statistics work in R, wherever a dataset splits into many groups that colleagues need to compare and explore in detail.
Good for: R users comfortable with ggplot2 and the tidyverse who need to explore data that splits into too many groups for one screen, such as countries, stocks or routes.
Keep in mind: Everything runs in R through trelliscopejs, and the first chapter stays with plain ggplot2 summaries and faceting before any Trelliscope display appears.
Bottom line: A focused look at trelliscopejs whose custom cognostics and closing bike-share case study give faceting a practical use for data with many groups.
Frequently Asked Questions
What are cognostics in a Trelliscope display?
Cognostics are metrics attached to each panel, such as a summary statistic, that let you sort and filter the whole display. The course first adds custom cognostics through the ggplot2 interface, then builds them from nested data frames in the tidyverse workflow.
What data do the plots and displays draw on?
Early lessons work with cab ride records covering fares, tips and payment types, followed by gapminder country data, stock prices and a database of Pokemon images. The last chapter analyzes 2017 ride data from the Montreal BIXI bike network, including its top 100 routes.
How is Trelliscope different from regular ggplot2 faceting?
Regular faceting places every panel on one page, which stops working once the data splits into too many groups. The trelliscopejs package keeps the faceting idea but spreads the panels across an interactive display that can be sorted, filtered and examined in detail.
Can Trelliscope work with plotting systems other than ggplot2?
Yes. Besides its ggplot2 interface, trelliscopejs offers a tidyverse mechanism built on grouping and nesting that gives more freedom in which plotting system you use and more control over how cognostics are specified.
Please log in to report a problem with this page.


There are no reviews yet.