I'm trying to gplot a time series on an interval from 5:30 to 5:31 to
see number of people I have within that interval.
Data Entry_Times;
Input ticket_time $1-10;
cards;
5:27:14
5:30:34
5:30:34
5:31:29
5:31:35
5:31:50
5:31:57
5:31:58
5:31:59
5:32:05
5:32:22
5:32:59
5:33:58
5:34:14
5:35:39
;
run;
quit;
proc gplot data=Entry_Times;
plot ticket_time;
run;
|
|
0
|
|
|
|
Reply
|
vincent.s.jones (12)
|
3/14/2010 7:12:25 PM |
|
On Mar 14, 12:12=A0pm, vncntj <vincent.s.jo...@gmail.com> wrote:
> I'm trying to gplot a time series on an interval from 5:30 to 5:31 to
> see number of people I have within that interval.
>
> Data Entry_Times;
> Input ticket_time $1-10;
>
> cards;
> 5:27:14
> 5:30:34
> 5:30:34
> 5:31:29
> 5:31:35
> 5:31:50
> 5:31:57
> 5:31:58
> 5:31:59
> 5:32:05
> 5:32:22
> 5:32:59
> 5:33:58
> 5:34:14
> 5:35:39
> ;
> run;
> quit;
>
> proc gplot data=3DEntry_Times;
> =A0 plot ticket_time;
> run;
Data Entry_Times;
Input ticket_time time10.;
id=3D'T';
cards;
5:27:14
5:30:34
5:30:34
5:31:29
5:31:35
5:31:50
5:31:57
5:31:58
5:31:59
5:32:05
5:32:22
5:32:59
5:33:58
5:34:14
5:35:39
;
run;
quit;
options nocenter;
proc timeplot
format ticket_time time10.;
plot ticket_time=3Did / pos=3D25;
run;
/* or you can make gplot look like timeplot */
proc gplot data=3Dentry_times;
format ticket_time time10.;
plot ticket_time*ticket_time=3Did;
run;
Output from timeplot.
ticket_time min max
5:27:14 5:35:39
*-------------------------*
5:27:14 |T |
5:30:34 | T |
5:30:34 | T |
5:31:29 | T |
5:31:35 | T |
5:31:50 | T |
5:31:57 | T |
5:31:58 | T |
5:31:59 | T |
5:32:05 | T |
5:32:22 | T |
5:32:59 | T |
5:33:58 | T |
5:34:14 | T |
5:35:39 | T|
*-------------------------*
If you want to plot time vs frequency do this to get output for plot
proc freq data=3Dentry_times;
format ticket_time time5.;
tables ticket_time/missing out=3Dfrq;
run;
and olot the frq dataset
|
|
0
|
|
|
|
Reply
|
xlr82sas (391)
|
3/14/2010 11:21:39 PM
|
|
thanks!!!
:)
On 14 mar, 19:21, xlr82sas <xlr82...@aol.com> wrote:
> On Mar 14, 12:12=A0pm, vncntj <vincent.s.jo...@gmail.com> wrote:
>
>
>
>
>
> > I'm trying to gplot a time series on an interval from 5:30 to 5:31 to
> > see number of people I have within that interval.
>
> > Data Entry_Times;
> > Input ticket_time $1-10;
>
> > cards;
> > 5:27:14
> > 5:30:34
> > 5:30:34
> > 5:31:29
> > 5:31:35
> > 5:31:50
> > 5:31:57
> > 5:31:58
> > 5:31:59
> > 5:32:05
> > 5:32:22
> > 5:32:59
> > 5:33:58
> > 5:34:14
> > 5:35:39
> > ;
> > run;
> > quit;
>
> > proc gplot data=3DEntry_Times;
> > =A0 plot ticket_time;
> > run;
>
> Data Entry_Times;
> Input ticket_time time10.;
> id=3D'T';
> cards;
> 5:27:14
> 5:30:34
> 5:30:34
> 5:31:29
> 5:31:35
> 5:31:50
> 5:31:57
> 5:31:58
> 5:31:59
> 5:32:05
> 5:32:22
> 5:32:59
> 5:33:58
> 5:34:14
> 5:35:39
> ;
> run;
> quit;
>
> options nocenter;
> proc timeplot
> format ticket_time time10.;
> plot ticket_time=3Did / pos=3D25;
> run;
>
> /* or you can make gplot look like timeplot */
> proc gplot data=3Dentry_times;
> format ticket_time time10.;
> plot ticket_time*ticket_time=3Did;
> run;
>
> Output from timeplot.
> ticket_time =A0 =A0 =A0 =A0min =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0max
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A05:27:14 =A0 =A0 =A0 =A0 =A0 =A05:3=
5:39
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 *-------------------------*
> =A0 =A05:27:14 =A0 =A0 =A0 =A0|T =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =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A0 =A0 =A0 T=
=A0 |
> =A0 =A05:35:39 =A0 =A0 =A0 =A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0T|
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 *-------------------------*
>
> If you want to plot time vs frequency do this to get output for plot
>
> proc freq data=3Dentry_times;
> format ticket_time time5.;
> tables ticket_time/missing out=3Dfrq;
> run;
> and olot the frq dataset
|
|
0
|
|
|
|
Reply
|
vincent.s.jones (12)
|
3/15/2010 4:12:35 AM
|
|