Taylor & Francis Group
Browse
ucgs_a_1715226_sm4976.zip (3.4 kB)

Calendar-Based Graphics for Visualizing People’s Daily Schedules

Download (3.4 kB)
Version 3 2021-09-29, 16:19
Version 2 2020-02-19, 18:06
Version 1 2020-01-13, 20:36
dataset
posted on 2021-09-29, 16:19 authored by Earo Wang, Dianne Cook, Rob J. Hyndman

Calendars are broadly used in society to display temporal information and events. This article describes a new calendar display for plotting data that include a layout algorithm with many options, and faceting functionality. The functions use modular arithmetic 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. Supplementary materials for this article are available online.

History