USGS-R / lakeReport

Scripts and report generator
Other
0 stars 4 forks source link

No tick marks or dates (years) on x-axis on Winnebago stage hydrograph #88

Closed sbmarsh-USGS closed 6 years ago

sbmarsh-USGS commented 6 years ago

This is the only plot for which this happened. Perhaps due to the number of years?...134 years. 1882-2016 Winnebago at Oshkosh (04082500)

image

lindsayplatt commented 6 years ago

@sbmarsh-USGS merely a fluke in the classes for dates and it is very specific to this site.

This line used the class Date, but the rest uses POSIXct for the dates . So, it is not able to figure out where to put the ticks because we have mixed data classes. All you should need to do is change the as.Date on this line to as.POSIXct and it should work.

sbmarsh-USGS commented 6 years ago

@lindsaycarr That did the trick! Thank you!