Help using Base SAS procedures

Graphic question

Reply
N/A
Posts: 0

Graphic question

Dear,

I want to create a graphic that only have mean and SD (or SE).
The graphic is like this: http://adolphus.pixnet.net/album/photo/104475158#pictop
Can I use SAS to create this kind of graphic, if yes, how can I do this?
Thanks.

Adolphus
Regular Contributor
Regular Contributor
Posts: 156

Re: Graphic question

Hi Adolphus,

I'd do it like this:

Do a data step first in which you calculate the statistics that you want to use.

Then do a proc gplot with two variables. To show them both use the symbol statement. Important: the horizontal axis must be the same variable for both statistics (e.g. year or the like).

symbol1 value=diamond interpol=none color=red;
symbol2 vaue=dot interpol=none color=blue;

proc gplot data=mydata;
plot
myverticalvalue1*horizontalvalues
myverticalvalue2*horizontalvalues / overlay;
run;
quit;

If the OVERLAY option were not specified, each plot request would generate a separate graph.

Best regards,
Eva
N/A
Posts: 0

Re: Graphic question

Hi Eva,

I think I didn't say very clearly that make you do the wrong work. Really sorry.
I want to make a graphic a little like this http://adolphus.pixnet.net/album/photo/104513065#pictop
But it is vertical (I think I can solve this problem ), and I don't want the bar.
So the graphic would like this http://adolphus.pixnet.net/album/photo/104513494#pictop
I do not sure that SAS can make this kind of graphic, if can please tell me how to do this.
Thanks.

Best regards,
Adolphus
Super Contributor
Super Contributor
Posts: 3,174

Re: Graphic question

The SAS support http://support.sas.com/ website has much information about different graphics and charting (data visualization) types, including box plots and others. Also, the SAS/Graph software documentation is hosted at the SAS support website as well with solution and code examples.


Scott Barry
SBBWorks, Inc.


http://support.sas.com/rnd/datavisualization/index.htm
Ask a Question
Discussion stats
  • 3 replies
  • 87 views
  • 0 likes
  • 3 in conversation