I have a data which has a start time, end time, Stay Time(End-Start) and # of subjects. I am trying to create a graph, line, bar or histogram which shows how many subjects were there at a specific time. So the horizontal axis would have time from 00:00 to 24:00 and vertical axis would have the total # of subjects or the %.
Start End Subject Stay
01:00 02:00 1 01:00
01:00 01:45 1 00:45
02:00 21:00 1 19:00
03:10 14:10 1 11:00
The data set is huge and I am using SAS Enterprise Guide and excel to create a graph.
I have tried PROC GPLOT but it doesn't provide me what I am looking for. Did the same thing for line plots and bar charts(stacked) but couldn't. I am not sure if there is an easier way to do it . This is a code I used in SAS EG. Tried creating a stacked bar chart in excel as well.
PROC GPLOT DATA=Input;
PLOT Stay * start /
AREAS=1
FRAME VAXIS=AXIS1
HAXIS=AXIS2
;
RUN; QUIT;
Please help.
Thanks