Data visualization with SAS programming

Export several shewhart charts to PDF files (on one page)

Reply
New Contributor
Posts: 4

Export several shewhart charts to PDF files (on one page)

Hi,

 

i have little problem to format the output of the pdf file.

I used

ods pdf file to generate a pdf file

That works, but the problem now is that I want to fit those 3 chart on one page. I really would like to change size of those charts.

I already tried startpage=never,  the log file tells me the statement is not valid or it is used out of proper order (Note I am using SAS 9.1).

 

Any ideas how to solve this problem?

 

BIG

THANKS

Super User
Super User
Posts: 7,668

Re: Export several shewhart charts to PDF files (on one page)

Hi,

 

Not sure what your using to create them, however with splot/graph template you can set gridded output to show multiple graphs on one page:

http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#sgpanel-chap.ht...

Or for GTL:

http://support.sas.com/documentation/cdl/en/grstatgraph/67882/HTML/default/viewer.htm#p1h7wd5z8ihewz...

SAS Super FREQ
Posts: 1,134

Re: Export several shewhart charts to PDF files (on one page)

The first production release of GTL and SGPLOT was SAS 9.2.

New Contributor
Posts: 4

Re: Export several shewhart charts to PDF files (on one page)

i do not have a data to read in proc sgpanel.

I used shewhart procedure to generate a uchart 

I get the pdf file trough  

 

ods pdf file='mypath\name.pdf';

 

proc shewhart data=mydata ;
title 'u Chart for mydata';
symbol v=dot
cv=lightblue
CLIMITS=red;
   uchart F4*F1 / subgroupn=1;
run;

ods pdf close;

 

attached you find the pdf

but the charts are to big

 

 

 

 

New Contributor
Posts: 4

Re: Export several shewhart charts to PDF files (on one page)

sorry the first attachment was empty

Super User
Posts: 18,995

Re: Export several shewhart charts to PDF files (on one page)

You haven't tried to change the chart size. Please look at the link I posted. 

Super User
Posts: 18,995

Re: Export several shewhart charts to PDF files (on one page)

Set the size of graphs manually. 

http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_odsgraph_sec...

 

Look at column option on ODS PDF statement if you want side by side graphs. 

I think startpage is correct but maybe not for 9.1 - that's old - about 15 yrs I think. 

 

Post sample code code if you're having issues and the log if you're getting errors. 

 

New Contributor
Posts: 4

Re: Export several shewhart charts to PDF files (on one page)

[ Edited ]

I tried but it is not working

 


Capture.PNG
Super User
Posts: 18,995

Re: Export several shewhart charts to PDF files (on one page)

Can you post your SAS version? 

 

Run the following and see log

 

%put &sysver;

%put &sysvlong; 

 

if you're really on SAS 9.1 you may not have options. 

Ask a Question
Discussion stats
  • 8 replies
  • 271 views
  • 0 likes
  • 4 in conversation