|Date: ||Tue, 20 May 2008 08:40:19 -0400|
|Reply-To: ||Samuel Croker <samuel.croker@GMAIL.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Samuel Croker <samuel.croker@GMAIL.COM>|
|Subject: ||Re: Graph help!|
|Content-Type: ||text/plain; charset=ISO-8859-1|
You could download an open source s-plus called R at
www.r-project.org. It is easier to produce one-off graphs in R or
S-Plus but it can also be done in SAS without (too) much difficulty.
There are a number of ways of approaching this but what comes to mind
is to have the data points for each curve stored in a sas variable.
you could store them like
x curve1 curve2 curve3 ...
Then in the gplot procedure, the plot statement would look something like
plot (curve1 curve2 curve3 ...) * x /overlay;
You will need to use the symbol statement to format the curves themselves so:
symbol1 color=blue intepol=join;
Use the axis statement to format the axes.
To get the resolution that you want you will need to use the goptions
statement. sas graphs look pretty bad when rendered at a low
resolution so if I like to make them big and then resize them down to
smaller within Word or LaTeX or whatever. Also in the goptions is the
device= option. I suggest using a vector image format such as wmf for
inclusion into microsoft products. There are many options here but I
have found wmf to look pretty good. PDFC is the way to go in LaTeX.
You will need to use the annotate facility to annotate the graph.
So I suggest a browse through the GPLOT, SYMBOL, AXIS, GPLOT and
Annotate Facility documentation.
See what you can do with this general stuff then post any specific issues,
On Mon, May 19, 2008 at 3:55 PM, Kevin F. Spratt
> I need to build a figure that has three normal curves [N(0,1)]across
> the page with the
> left most curve depicting an 80% CI , the middle cure depicint a 90%
> CI and the third
> curve an asymmetric 85% CI WITH 5% below the lower limit and 10%
> above the upper limit.
> That's not all. I need the three graphs to fit on an within an 6.5"
> width and probably a 4"
> height, and once the graphs are properly located I will need to do
> some annotation.
> This is a one off figure and if the first part could be outputed as a
> RTF or some other
> graphics output that I could edit with a draw program I'm guessing
> that I would be fine
> in word.
> A colleague indicted that she could do this in S-Plus. Well, I can't
> have that.
> Which is a bad place for me to be because my SAS graph skills are pretty
> I'm running SAS 9.1.3 on a Windowns XP Professional platform if it
> makes a difference
> and, as always any advice is gratefully accepted.
> Kevin F. Spratt, Ph.D.
> Department of Orthopaedic Surgery
> Dartmouth Medical School
> One Medical Center Drive
> Lebanon, NH USA 03756
> (603) 653-6012 (voice)
> (603) 653-6013 (fax)
> Kevin.F.Spratt@Dartmouth.Edu (e-mail)
Samuel T. Croker