I dont understand how to define lower and upper bound for my averages to plot them in ggplot as shown here or here.
My data frame looks like this:
> data
scenario decade FutureRangeSize.FullDisp
38 rcp85 2060 85847
1 rcp45 2020 376997
75 rcp85 2100 6328
42 rcp45 2060 68878
54 rcp85 2060 44859
37 rcp45 2060 70499
13 rcp85 2020 192015
80 rcp85 2060 1571
48 rcp45 2100 61264
26 rcp85 2020 123585
49 rcp85 2100 72115
58 rcp85 2060 32498
52 rcp45 2060 52573
19 rcp85 2020 139007
61 rcp85 2060 17571
36 rcp45 2100 85076
27 rcp45 2060 234809
84 rcp85 2100 123
44 rcp85 2020 52735
71 rcp45 2100 8967
So there are two scenarions (rcp45, rcp85) and decades ranging from 2020 to 2100. I would like to do an average for each decade for each scenario respectively and plot the lower and upper bound as shaded area in one plot.
Can anybody provide a working example how to do this?