Thank you for your suggestion Rick. This could have been a good solution if the different food consumption occasions were eaten on different times of the day. However, in my dataset some participants ate breakfast at 11am, whereas others ate lunch at 11am. Consequently, the colours of the different food consumption occassions will mix (and the graph becomes hard to interpretet), see attachment page 1 (please do not pay attention to the axis). I also tried your stacked bar chart suggestion. What I have in mind is that SAS will stack energy on top of protein per hour of the day, and, in order to get an easy-to-interpret graph, cluster this data per food consumption occasion. So, for instance, at 8am, there is 1 stacked (protein and energy) bar called breakfast, and at 11am there are 2 stacked (protein and energy) bars, one called breakfast and one called lunch. I have tried the following syntax, and this will already led me into the right direction (see attachment page 2): proc sgplot data=test_1 nocycleattrs; styleattrs datacolors=(purple blue green yellow orange red pink); vbar hour / response = sum_prot_kcal group=fco groupdisplay=cluster transparency=0.0; vbar hour / response=diff_en group=fco groupdisplay=cluster transparency=0.5; run; What I would like to add to this graph is a line that shows the curve of intake per food consumption occasion (see attachement page 3). Is it possible to add? It will probably give a better overview of the intake distribution over the day. Many thanks
... View more