Skip to main content
QUICK REVIEW

[Paper Review] Calendar-based Graphics for Visualizing People's Daily Schedules

Earo Wang, Dianne Cook|arXiv (Cornell University)|Oct 23, 2018
Human Mobility and Location-Based AnalysisSocial Sciences1 citations
TL;DR

This paper introduces the sugrrants R package, which uses linear algebra to restructure sub-daily temporal data into calendar layouts for enhanced visualization of human behavior patterns. By integrating with ggplot2, it enables rich, faceted graphics that reveal daily rhythms, special events, and seasonal variations—demonstrated through pedestrian and household energy usage data—offering deeper insights than conventional time series or heatmap visualizations.

ABSTRACT

Calendars are broadly used in society to display temporal information and events. This paper describes a new calendar display for plotting data, that includes a layout algorithm with many options, and faceting functionality. The functions use modulus algebra on the date variable to restructure the data into a calendar format. The user can apply the grammar of graphics to create plots inside each calendar cell, and thus the displays synchronize neatly with ggplot2 graphics. The motivating application is studying pedestrian behavior in Melbourne, Australia, based on counts which are captured at hourly intervals by sensors scattered around the city. Faceting by the usual features such as day and month, is insufficient to examine the behavior. Making displays on a monthly calendar format helps to understand pedestrian patterns relative to events such as work days, weekends, holidays, and special events. The functions for the calendar algorithm are available in the R package sugrrants.

Motivation & Objective

  • To develop a method for visualizing sub-daily temporal data in a calendar layout that captures daily, weekly, and seasonal patterns.
  • To overcome limitations of conventional time series and heatmap visualizations that obscure patterns related to special events, holidays, and time-of-day variations.
  • To enable integration with the grammar of graphics (ggplot2) for flexible, customizable visualizations within calendar cells.
  • To support the analysis of human behavior in urban environments, such as pedestrian traffic and household energy use, by making event-driven patterns more visible.
  • To provide a modular, extensible framework for calendar-based visualization that supports multiple temporal resolutions and event types.

Proposed method

  • The frame calendar function uses linear algebra on date variables to restructure raw data into a calendar-aligned format suitable for faceting.
  • Data is reorganized into a matrix-like structure where rows represent weeks and columns represent days, enabling consistent layout mapping.
  • The method supports multiple calendar formats (e.g., monthly, weekly) and allows embedding of any ggplot2-compatible plot (e.g., lines, points, boxplots) within each cell.
  • The approach aligns with tidy data principles and integrates seamlessly with the tidyverse and ggplot2 ecosystems.
  • The layout algorithm preserves temporal continuity and supports overlaying multiple visual elements per cell, such as time-of-day trends and event markers.
  • The implementation is packaged in sugrrants (available on CRAN and GitHub), with full reproducibility via the project’s GitHub repository.

Experimental results

Research questions

  • RQ1How can sub-daily temporal data be effectively visualized in a calendar layout to reveal patterns related to workdays, weekends, holidays, and special events?
  • RQ2To what extent does calendar-based visualization improve the detection of time-of-day and day-of-week patterns in pedestrian and energy usage data compared to standard time series or heatmap displays?
  • RQ3Can integrating the grammar of graphics into calendar layouts enhance interpretability and flexibility in visualizing complex temporal behaviors?
  • RQ4How do individual household energy usage patterns differ across weekdays, weekends, and vacation periods, and can these be clearly visualized using calendar graphics?
  • RQ5What role do environmental and behavioral factors (e.g., air conditioning, heating, family size) play in shaping daily energy use, and how are they reflected in calendar visualizations?

Key findings

  • Calendar-based visualizations revealed that pedestrian traffic at the State Library spiked during the White Night event, a pattern obscured in standard time series plots.
  • The visualization exposed distinct differences in pedestrian behavior between the Flagstaff Station (train station) and Birrarung Marr (outdoor park), with the latter showing high variability and event-driven spikes.
  • Household 1 exhibited a clear vacation pattern in June, with reduced energy use, which was visually apparent in the calendar layout but not in aggregated summaries.
  • Household 3 showed consistent high energy use on weekdays and weekends, with multiple long vacations in June/July and September/October, visible as extended low-use periods in the calendar.
  • The use of air conditioning and heating in households 1 and 2 was clearly marked by daily temperature-related usage patterns, particularly in winter and summer months.
  • The calendar layout successfully highlighted public holidays such as Anzac Day and Christmas, which were visually distinct in energy use patterns across households.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.