Date: Fri, 31 Mar 2006 14:52:38 -0500
Reply-To: Angela Hall <angela.hall@ZENCOS.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Angela Hall <angela.hall@ZENCOS.COM>
Subject: Re: Proc plot
Try something like this:
proc gplot;
by year;
plot month*amount=transport;
run;
Angela Hall
Zencos Consulting LLC
On Wed, 29 Mar 2006 14:42:36 -0600, Mark Leader <markl@UAB.EDU> wrote:
>I have data that tracks several items over 5 years.
>I would like a plot for each transport over a 1 year period by month .
>But I would like to put all these 20 plots on only a couple pages.
>How do I do this with out a lot of where statements and data sets.
>SAS Data looks like this:
>
>transport year mounth amount
>
>car 1998 1 3
>truck 1998 1 5
>suv 1998 1 4
>tractor 1998 1 8
>car 1998 2 3
>truck 1998 2 5
>suv 1998 2 4
>tractor 1998 2 8
>
>car 1999 1 6
>truck 1999 1 9
>suv 1999 1 2
>tractor 1999 1 6
>car 1999 2 6
>truck 1999 2 9
>suv 1999 2 2
>tractor 1999 2 6
>
>car 2000 1 5
>truck 2000 1 8
>suv 2000 1 4
>tractor 2000 1 8
Try this:
proc gplot;
by year;
plot month*amount=transport;
run;
Angela Hall
Zencos Consulting LLC