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.

50 comments:

Anonymous said...

miley cyrus nude miley cyrus nude miley cyrus nude

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]

buy viagra said...

viagra online
generic viagra

Anonymous said...

Sorry for the stupid question. What is the best search engine http://google.com or http://yahoo.com?

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 soma soma online pharmacy usa - buy soma online $0.45 each

Anonymous said...

soma online pharmacy soma shop jaipur - cheap sheraton soma bay

Anonymous said...

carisoprodol soma illegal buy soma online - buy soma online no prescription overnight

Anonymous said...

buy soma soma online music - crystal castles soma san diego 2012

Anonymous said...

buy soma 350mg soma drug indications - buy soma watson brand com

Anonymous said...

cialis online cialis daily vs. as needed - buy cialis online south africa

Anonymous said...

buy cialis generic cialis zoll - cialis coupon

Anonymous said...

tramadol 50mg tramadol hcl 50mg get you high - tramadol addiction message board

Anonymous said...

buy cialis online cialis daily pill - best price cialis

Anonymous said...

buy tramadol can u buy tramadol over counter - buy tramadol no prescription overnight

Anonymous said...

xanax anxiety buy xanax online from europe - xanax klonopin conversion

Anonymous said...

buy carisoprodol soma carisoprodol tablets used - soma or carisoprodol

Anonymous said...

buy carisoprodol carisoprodol soma scheduled drug - carisoprodol 350 mg withdrawal

Anonymous said...

generic xanax buy xanax online overnight - xanax 2mg purepac

Anonymous said...

xanax online xanax effects testosterone - xanax drug usage

Anonymous said...

carisoprodol 350 mg carisoprodol 350 mg get you high - carisoprodol mechanism

Anonymous said...

buy carisoprodol carisoprodol daily dosage - difference between soma carisoprodol

Anonymous said...

buy tramadol can you order tramadol online - tramadol hcl 50 mg side effects

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 online buy cialis online nz - cialis cheapest lowest price

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...

http://southcarolinaaccidentattorney.com/#31694 carisoprodol drug - carisoprodol dosage recreational

Anonymous said...

http://southcarolinaaccidentattorney.com/#90864 carisoprodol user reviews - what is carisoprodol 350 mg side effects

Anonymous said...

cheap carisoprodol carisoprodol (soma) vs cyclobenzaprine (flexeril) - muscle relaxers carisoprodol side effects

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...

The post proѵidеs established bеneficial
to myself. ӏt’s quite usеful аnd уou're simply clearly very knowledgeable in this field. You have got popped my personal sight to be able to varying thoughts about this kind of topic along with intriguing, notable and solid content material.
My web site :: buy phentermine

Anonymous said...



Also visit my site ... webpage

Anonymous said...



My web-site: web page

Anonymous said...



Have a look at my blog :: webpage

Anonymous said...



Feel free to visit my weblog :: webpage

tadalis 20 said...

Nice Post Love Reading Its

kamagra

generic Viagra

Jian Zhuo 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