Home > Blockchain >  How to evenly space non-sequential dates on x-axis in ggplot?
How to evenly space non-sequential dates on x-axis in ggplot?

Time:10-02

Suppose I have data for the years 1913, 1928, 1929, ..., 1938, and I want to plot these years on an x-axis where each year is evenly spaced, i.e., same distance between 1913 and 1928 as between 1928 and 1929. How can I do this in ggplot?

Everything I have tried so far results in 1913 appearing significantly far to the left from 1928, as if ggplot is plotting my x-axis on a number line. Please see the attached link for an enter image description here

  • Related