Visualizing changes over time is fundamental to learning from the past and anticipating the future. However, temporal semantics can be complicated, and general-purpose visualization grammars often lack composable elements that fully respect temporal semantics. This can lead to silent errors during exploratory time series analysis, or -- amongst experts -- the use of more brittle bespoke plot helper functions designed to produce specific graphics. We address this problem by proposing a grammar of temporal graphics, and an associated software implementation, 'ggtime', that integrates temporal semantics with the visual semantics of a declarative grammar. The grammar introduces new composable elements that support linear and cyclical arrangements of time and alignment of time points across different granularities and time zones. These elements help avoid common errors, such as misleading slopes at daylight saving transitions and broken connections between seasonal cycles. The grammar is designed for interoperability with other semantic variables, such as combining temporal and probabilistic semantics to visualize forecasts.
翻译:暂无翻译