I am struggling with the axis intervals, since there are too many ticks. I've tried different solutions, but none has worked.
I have 12 months (as characters 01, 02...) and I would like to have just six or four.
This is what I have:
Thank you for your answer. This is a nice alternative, but I guess it would be more difficult to read the year. I need to display the data (01, 02,...12) for the entire year in three years, but without all the ticks in each facet.
I tried to convert months from character into date, but it didn't work. I also tried to use guide_axis(overlapping = true) to avoid the crowded axis, and the scale_x_continuous to edit the ticks, but they didn't work either.
I don't know your data, so I can't answer correctly.
But if you want to convert the time to a number, check out as.numeric (), as.date (), or library (lubridate).
My attempts to convert it into numeric and date have failed. But at least I've found an acceptable solution. I've changed the tick mark labels from numbers (01, 02,...) to letters (J, F,...) with scale_x_discrete.
This way I avoid to overcrowd the axis. Thank you for helping me.