Thursday, December 21, 2006

Elegant plotting without ODS

One file for all the graphs

If you want to plot all the graphs in one file without using ODS, you should add the following line at the beginning of your program.

filename mygraph 'usrroom.ps';
goptions reset=global DEVICE=pscolor gsfmode=append gsfname=mygraph;

**this would generate 3.ext - a postscript file that contains the boxplots ****;
**note that ‘device=PSLEPSFC’ and filename mygraph 'usrroom.eps' ; would result in a eps file with colors**;
**note that ‘device=pscolor’ would result in a graph with colors**;

**if you do not use gsfname option, then sas would name the file by default sasgraph.ps. **;

This would generate a single file postscript(ps) file ‘usrroom.ps’ with all your plots .

inserting ps files in word

Convert ps files to enhanced post script files for inserting into word documents in unix/hsph by typing

convert file.ps file.eps

making a pdf file from ps
ps files can be made into a pdf file in unix/hsph by typing
ps2pdf usrroom.ps graphs.pdf

If you run the proc goptions or other advanced graphics would this line you would get the following prompt
"No device name has been given--please enter device name:"

If you enter ‘ps’ or ‘pscolor’, you would get a postscript file.

Separate file for each graph

If you want to make separate files for each graph it can be done by using goptions before each plot as shown in the following code

gif files

If you want to plot separate file for each graph, you should add the following line at the beginning of your program.

filename mygraph '/usr2/users/student/username/graphs';
goptions reset=global DEVICE=html gsfmode=append gsfname=mygraph;

This would generate gif files in files in folder /graphs. gif files are easy to insert in word .

pdf files

If you want to plot separate pdf file for each graph, you can add the following line at the beginning of each proc gplot command.

filename grafout '1.pdf';
goptions device=pdf gsfname=grafout gaccess=sasgastd gsfmode=replace;
symbol value=dot color=purple;
proc gplot data=weights;
plot bwt*age;
run;
**this would generate 1.pdf file that contains the plots of birth weight with age****;
**However, SAS would automatically map colors to greyscale in this file**

A good guide on plotting (pdf) is available here.

24 comments:

Anonymous said...

miley cyrus nude [url=http://www2.iuav.it/moodle/user/view.php?id=3500&course=1]miley cyrus nude[/url] miley cyrus nude [url=http://blogcastrepository.com/members/wreetgh.aspx]miley cyrus nude[/url] miley cyrus nude [url=http://my.wsbtv.com/service/displayKickPlace.kickAction?u=14041727&as=6690]miley cyrus nude[/url]

Anonymous said...

xanax online pills that look like xanax bars - alprazolam 0.5 mg street value

Anonymous said...

viagra online buy viagra with paypal uk - does viagra work for women 2011

Anonymous said...

viagra online without prescription generic viagra shipped to us - order viagra no prescription

Anonymous said...

generic viagra viagra online overnight shipping - viagra dosage recommendations

Anonymous said...

buy cialis generic cialis zoll - cialis coupon

Anonymous said...

buy cialis online cialis daily pill - best price cialis

Anonymous said...

generic cialis online buy cialis no prescription in us - buy cialis legally online

Anonymous said...

carisoprodol 350 mg side effects carisoprodol tablets - carisoprodol detection drug test

Anonymous said...

cialis sale cialis online pharmacy no prescription - cialis lowest price

Anonymous said...

20000 :) Neurontin Online - cost of gabapentin http://www.neurontinonlinecheap.net/#Buy-Neurontin, [url=http://www.neurontinonlinecheap.net/#Neurontin-Online]Generic Gabapentin[/url]

Anonymous said...

buy tramadol online tramadol hcl 50 mg get high - order tramadol from usa

Anonymous said...

http://buytramadolonlinecool.com/#96430 tramadol vs hydrocodone addiction - tramadol hcl 50 mg street price

Anonymous said...

buy klonopin online klonopin wafers reviews - .25 mg klonopin side effects

Anonymous said...

buy klonopin online klonopin and alcohol abuse - erowid valium klonopin

Anonymous said...

learn how to buy tramdadol tramadol withdrawal regimen - 627 tramadol high

Anonymous said...

http://www.integrativeonc.org/adminsio/buyklonopinonline/#9183 klonopin high grasscity - klonopin side effects chest pain

Anonymous said...

buy carisoprodol cod carisoprodol abuse - carisoprodol pharmacokinetics

Anonymous said...

Τhe artісle fеatures сonfіrmed helpful to myself.
It’ѕ very eԁucational аnd you аre ceгtainly
quite well-informed in this aгeа.
Yοu ρoѕsеsѕ οрeneԁ up my еyes to vаryіng thoughts аbout this topiс
tоgеtheг with іntriguing anԁ ѕounԁ сontent
mаtеrial.
Here is my web page :: en.wikilib.com

Anonymous said...



my site :: web site

Anonymous said...



My web-site: web page

Anonymous said...



Have a look at my blog :: webpage

tadalis 20 said...

Nice Post Love Reading Its

kamagra

generic Viagra

Unknown said...

ralph lauren outlet online
versace shoes
coach factory outlet
beats headphones
coach outlet
adidas nmd
michael kors outlet
nike shoes
abercrombie and fitch outlet
rolex replica watches
20170113