Skip to content

Instantly share code, notes, and snippets.

@kcui23
Last active November 1, 2023 20:47
Show Gist options
  • Save kcui23/66134d89ac411eeee198b5abe0c503e5 to your computer and use it in GitHub Desktop.
Save kcui23/66134d89ac411eeee198b5abe0c503e5 to your computer and use it in GitHub Desktop.
Time Series Visualization (I)

Time Series Visualization (I)

Basic tasks and visual strategies for temporal data

Befor beginning

  • Be careful of variation across datasets and variation across tasks
  • Based on that, there have been several efforts to systematically taxonomize the types of queries that time series visualizations have been used for.
  • 1

Technical details

  • Human eyes good at catching information of lines: use geom_line() to create basic lines
  • It is useful to draw area plot to emphasize the fact that these are amounts (they must be nonnegative). e.g. trade volume: use geom_area() to create area plot
  • For a larger collection of time series: use group_by() and facet_wrap() or facet_grid() to create plots at the same time
  • To clearly compare the y values of different sequences: use geom_tile() to create heatmap
  • 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment