openair icon indicating copy to clipboard operation
openair copied to clipboard

date labels on x-axis in timeplot

Open MorrCarter opened this issue 11 months ago • 1 comments

Question

how do I get the date label timeplot start from the first data point. Anytime I plot I get the date label starting from the next data point instead of the first data point

MorrCarter avatar Mar 12 '24 14:03 MorrCarter

Good morning!

I'm afraid I'm not sure what you're asking - are you able to provide a reproducible example of timePlot() not doing what you'd expect? Looking at the example below, it looks like the first data point lines up with the first axis tick.

Thanks, Jack

openair::mydata |>
  openair::selectByDate(year = 2005, month = 1, day = 1:10) |>
  openair::timePlot()

Created on 2024-03-14 with reprex v2.0.2

jack-davison avatar Mar 14 '24 10:03 jack-davison