Solved – Visualizing two scalar variables over time

What would be the best way to display changes in two scalar variables (x,y) over time (z), in one visualization?

One idea that I had was to plot x and y both on the vertical axis, with z as the horizontal.

Note: I'll be using R and likely ggplot2

The other idea is to plot one series as x and the second as y — the time dependency will be hidden, but this plots shows correlations pretty well. (Yet time can be shown to some extent by connecting points chronologically; if the series are quite short and continuous it should be readable.)

Similar Posts:

Rate this post

Leave a Comment