BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
3 REPLIES 3
Eva
Quartz | Level 8 Eva
Quartz | Level 8
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
deleted_user
Not applicable
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
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 982 views
  • 0 likes
  • 3 in conversation