davidcarslaw / openair

Tools for air quality data analysis
https://davidcarslaw.github.io/openair/
GNU General Public License v2.0
302 stars 113 forks source link

date labels on x-axis in timeplot #381

Open MorrCarter opened 6 months ago

MorrCarter commented 6 months ago

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

jack-davison commented 6 months ago

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