Greetings! I am currently dealing with a graphics problem between SAS and Adobe Illustrator. I need to create a report (large report) that contains hundreds of graphics. The decision has been made that we (the analysts) should create .svg graphics that can be brought into Adobe Illustrator (by some editor person). Thus far, we managed to successfully create editable .svg graphics in Adobe Illustrator from PROC GMAP, PROC GCHART. We have not been able to create any graphics via any of the PROC SG, including GTL + SGRENDER. Again, we would like to use SAS to create a .svg graphic, then import that .svg in Adobe Illustrator and be able to edit it. We don't want to use the SGEditor. We most likely want to have the ability to move legends and such as depending on a given page text. Here is code that produces editable svg in Adobe illustrator and code that doesn't. *--------------GMAP; goptions reset=goptions device=svg; ods printer file='M:\SVG_LOOKING_PLOT_W_GMAP.svg' ; ods listing close; proc gmap data=maps.us map=maps.us ; id state; choro state / levels=1 statistic = mean; run; quit; ods printer close; ods listing; title; /*--Data Set SeriesGroup--*/ data SeriesGroup; drop i; length Class $6; format Date monname3.; do i=0 to 334 by 10; date='01jan2009'd+i; Drug='A'; Value = 16+ 3*sin(i/90+0.5) + 1*sin(3*i/90+0.7); Class='NSAID'; Company='XX'; output; Drug='B'; Value = 10+ 3*sin(i/90+0.5) + 1*cos(3*i/90+0.7); Class='NSAID'; Company='XX'; output; Drug='C'; Value = 10+ 3*cos(i/90+0.5) + 1*sin(3*i/90+0.7); Class='Opioid'; Company='YY'; output; Drug='D'; Value = 20+ 3*cos(i/90+0.5) + 2*sin(3*i/90+0.7); Class='Opioid'; Company='YY'; output; end; run; proc sort data=SeriesGroup out=SeriesGroupSorted; by drug; run; /*--Create drug label for each curve at every 5th value--*/ data SeriesGroupLabel; set SeriesGroupSorted; if mod(_n_, 5) = 1 then do; Label=Drug; ValueL=Value; end; run; /*--Standard Series Plot--*/ proc template; define statgraph Series; begingraph / ; entrytitle 'Values by Date and Treatment'; layout overlay / xaxisopts=(display=(ticks tickvalues) timeopts=(tickvalueformat=data)); seriesplot x=date y=value / group=drug name='a' lineattrs=(thickness=2) smoothconnect=true; discretelegend 'a' / title='Drug:'; endlayout; endgraph; end; run; goptions reset=goptions device=svg; ods printer file='M:\series_plot.svg' ; ods listing close; /*--Standard Series Plot--*/ ods graphics / reset width=5in height=3in imagename='Series_Plot'; proc sgrender data=SeriesGroup template=Series; run; ods printer close; ods listing; title; Any advice would be highly appreciated!! Thank you in advance. Sincerely, Anca. NDER
... View more