0

Here's an image I made in paint on what I'm trying to do

enter image description here

Basically I'm trying to plot years on the major x axis and months on the minor x axis. And every three months (March, June,September,December) have a vertical broken line. I have really no clue where to start.

I'm not even sure if it is possible. I'm not sure if Hadley was addressing a similar question here. Some wrote "

Impossible labeling the minor ticks: Is this justified or a conceptual bug. At first sight it seems obvious that you want to do that, for example Mayor=years minor=months" and hadley responded

There is an infinite number of things that seems "obvious" to someone - I can only implement and support a finite number

...so I'm not sure if what I want to do is possible in ggplot2.

Marco Sandri
  • 23,289
  • 7
  • 54
  • 58
Dave Rosenman
  • 1,252
  • 9
  • 13
  • 1
    Probably not, but you could get pretty close using `facet_wrap`, and adjusting how close the facets are to each other (`theme(panel.spacing = unit(0, 'lines'))`) and also using `strip.position = 'bottom'` – bouncyball Oct 13 '17 at 15:52
  • 1
    Related: [Prevent showing the year several times unnecessarily with time series](https://stackoverflow.com/questions/44616530/prevent-showing-the-year-several-times-unnecessarily-with-time-series) – Henrik Oct 13 '17 at 16:21
  • @Henrik almost seems like a duplicate?? – bouncyball Oct 13 '17 at 17:39
  • Thanks Henrik! That was exactly what I was looking for! – Dave Rosenman Oct 14 '17 at 02:18

0 Answers0