From: titan titan on 5 Mar 2010 19:11 Hello all, I am a novice to graphs. I have a task here. I finished a bar chart of mean score across several visits of different groups. I had mean scores on the bars as well. Along with them I need to put P values on the bars. Can I have a code help for annotation(I did not do that before)? I can search in google and read articles but it takes time to learn. I need to finish my task at the earliest I can. Please do help me.
From: Nathaniel Wooding on 5 Mar 2010 19:54 T.T. I do not have time this evening to send you code but if you look at the SAS online documentation for the Annotate facility, you should find an example that you could adapt. Nat Wooding -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L(a)LISTSERV.UGA.EDU] On Behalf Of Titaan Titaan Sent: Friday, March 05, 2010 7:09 PM To: SAS-L(a)LISTSERV.UGA.EDU Subject: Graph Help Hello all, I am a novice to graphs. I have a task here. I finished a bar chart of mean score across several visits of different groups. I had mean scores on the bars as well. Along with them I need to put P values on the bars. Can I have a code help for annotation(I did not do that before)? I can search in google and read articles but it takes time to learn. I need to finish my task at the earliest I can. Please do help me. CONFIDENTIALITY NOTICE: This electronic message contains information which may be legally confidential and or privileged and does not in any case represent a firm ENERGY COMMODITY bid or offer relating thereto which binds the sender without an additional express written confirmation to that effect. The information is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
From: Arthur Tabachneck on 6 Mar 2010 10:00 Titaan, Take a look at the excellent exmples on Robert Allison's page: http://robslink.com/SAS/Home.htm particularly the example at: http://robslink.com/SAS/democd11/pollen_info.htm Robert's page contains the code for all of the graphic examples shown there. Art --------- On Fri, 5 Mar 2010 19:08:39 -0500, Titaan Titaan <titaan08(a)GMAIL.COM> wrote: >Hello all, >I am a novice to graphs. I have a task here. I finished a bar chart of mean >score across several visits of different groups. I had mean scores on the >bars as well. Along with them I need to put P values on the bars. Can I >have a code help for annotation(I did not do that before)? I can search in >google and read articles but it takes time to learn. I need to finish my >task at the earliest I can. Please do help me.
From: Mike Zdeb on 6 Mar 2010 12:51 hi ... maybe this will help ... it will do a vertical bar chart using the data set SASHELP.AIR the bars are labeled with the MEAN an annotate data set is used to add the MEDIAN inside the top of each bar * find the MEDIAN of AIR for each year in the data set; proc summary data=sashelp.air nway; var air; class date; output out=stats median=; format date year.; run; title "data set stats ... pretend the variable AIR is your p-value (here, it's the median)"; proc print data=stats; run; * only things you should have to change in the next data step are ... SET STATS ... SET <your data set> MIDPOINT=DATE ... MIDPOINT=<variable on x-axis of your chart> TEXT=PUT(AIR,5.) ... TEXT=PUT(<variable on y-axis of your chart>,<format to display that variable>) ; data anno; retain xsys ysys '2' hsys '3' function 'label' size 2 position '8' style '"calibri"' when 'a'; set stats; midpoint = date; text = put(air,5.); run; goptions reset=all ftext='calibri' htext=2 gunit=pct hpos=40; axis1 label=(a=90); pattern1 v=s c=graydd; proc gchart data=sashelp.air; vbar date / type=mean discrete sumvar=air outside=mean raxsi=axis1 annotate=anno; format date year.; run; quit; -- Mike Zdeb U(a)Albany School of Public Health One University Place Rensselaer, New York 12144-3456 P/518-402-6479 F/630-604-1475 > Titaan, > > Take a look at the excellent exmples on Robert Allison's page: > > http://robslink.com/SAS/Home.htm > > particularly the example at: > http://robslink.com/SAS/democd11/pollen_info.htm > > Robert's page contains the code for all of the graphic examples shown > there. > > Art > --------- > On Fri, 5 Mar 2010 19:08:39 -0500, Titaan Titaan <titaan08(a)GMAIL.COM> > wrote: > >>Hello all, >>I am a novice to graphs. I have a task here. I finished a bar chart of > mean >>score across several visits of different groups. I had mean scores on the >>bars as well. Along with them I need to put P values on the bars. Can I >>have a code help for annotation(I did not do that before)? I can search in >>google and read articles but it takes time to learn. I need to finish my >>task at the earliest I can. Please do help me. >
|
Pages: 1 Prev: Traffic lighting for character variables? Next: Graph Help |