LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 24 Oct 2008 12:47:15 -0400
Reply-To:     Joe Whitehurst <joewhitehurst@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Joe Whitehurst <joewhitehurst@GMAIL.COM>
Subject:      Re: proc gplot - plot 10 charts in 1 page
Comments: To: Aj <ajeetsubramanian@gmail.com>
In-Reply-To:  <129a50e0810240935p416e9c15u5f489fab07a55d29@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

I got the message below so I reposted without the attachment. I assume you got the attachment.

Your posting to the SAS-L list has been rejected because it only contains attachments which are disallowed by the list configuration. Even though the list is configured to remove unwanted attachments and process the remaining text, in this case there would be nothing left after removing the unwanted data.

On Fri, Oct 24, 2008 at 12:35 PM, Joe Whitehurst <joewhitehurst@gmail.com>wrote:

> Aj, > > I really like Tufte's notion of small multiples and use the technique quite > often. Below is code that can generate 52 3D Vertical Bar charts and place > them all one one page without sacrificing even a smidgen of readability. > The Vertical Bar Charts depict the number of probable and suspected cases of > SARS in the United Sates by date of onset in 2003. Each Vertical Bar Chart > depicts one week of 7 days and the days and particular week are clearly > identified. I have attached the output for you to view. As an aside, I > once created a SAS/Graph template with over 400 panels on a single page so I > could produce a monthly graphical report of mainframe computer resource > utilization in one pass on a large (500ft by 37inches roll of paper) > Electrostatic Plotter (Secret DOD Project). > > filename grphout "c:\sars\graphics\graph1_&today..emf" ; > goptions reset=_all_ device=emf gsfname=grphout rotate=portrait gunit=pct > targetdevice=emf > ftext='Verdana/bold' htext=8 hsize=15in vsize=12in noborder > goutmode=append; > %macro gen_charts; > proc freq data=sasdata1.caselist2; > tables week /out=week noprint; > run; > data _null_; > set week nobs=number_of_weeks; > call symput('number_of_weeks',left(number_of_weeks)); > stop; > run; > proc greplay nofs; > igout gcat1.graphs; > delete _all_;run;quit; > %do i=1 %to &number_of_weeks; > data _null_; > week_number=input(left(&i),2.); > set week point=week_number; > call symput('week',left(week)); > stop; > run; > %let end=%sysevalf(&week+7); > %put "week=&week" "end=&end"; > data epi&week; > set sasdata1.caselist2(where=(week=&week)); > run; > data new_annotate1; > length text $15; > %system(2,2,3); > %sequence(B); > do l=3 to 15 by 3; > * %line(&week,l,&end,l,greyef,1,.1); > end; > %system(3,2,3); > %label(50,15,put(&week,date9.),black,0,0,8,'Verdana/bold',5); > run; > proc gchart data=epi&week > annotate=new_annotate1 > gout=gcat1.graphs; > vbar3d date_of_onset / > maxis=axis1 > raxis=axis2 > subgroup=Case_type > name="Gchart&i" > frontref > type=freq > noframe > shape=c > inside=freq > coutline=grey00 > midpoints=(&week to &end) > nolegend > discrete > width=26 > space=1 > ; > format week date_of_onset mmddyy5. Case_type casetyp. ; > label date_of_onset = 'Date of Onset' ; > run;quit; > %end; > %mend; > %gen_charts; > title1 h=2 f='Verdana/bold' 'Number of Probable and Suspect SARS Cases by > Date of Onset'; > title2 h=1.5 f='Verdana/bold' 'United States - 2003'; > title3 h=1.5 f='Verdana/bold' "N = &n_total" ; > proc gslide gout=gcat1.graphs > name='title'; > run; > > On Fri, Oct 24, 2008 at 1:02 AM, Aj <ajeetsubramanian@gmail.com> wrote: > >> Hi All >> >> I am plotting Univariate histogram and was keen to know whether we >> could plot 8 or 10 charts in one page, with proc Gplot option, as this >> would give better insight on the data with a side by side comparison >> over the 8/10 periods. >> >> Thanks >> Aj >> > >


Back to: Top of message | Previous page | Main SAS-L page