I am trying to make a graph showing the time series progression of rainfall for 1000 or so regions. My current plot looks like this:
As you can see, this is way too many lines to have on a plot. Ideally, I would like to plot the progression of deciles across time, so that we have only 9 lines on the graph.
I'm not 100% what the code for this would look like. I need a function that goes from
N -> 10 and is applied across a dataframe that is grouped by year.
Instead of worrying about this hypothetical function, I thought it would be best to first ask the community if there is a
ggplot2 function that does this for me. Most time-series graphs focus on having only one or two lines. Of the responses that focus on having many different observations per year, people suggest two thing.
- Do what I do above and set both
alphato be very low. This results in pretty graphs, but it is difficult for me to get a true sense of the distribution of rainfall.
- Plot a series of box and whisker plots across time. This seems like an inelegant solution, since it can get crowded with many years.
- A ridge plot, but this also gets awkward with many years of data.