BookmarkSubscribeRSS Feed
Dillonk499
Calcite | Level 5
Hi, 

I am running the below code to generate a bar chart showing the difference between weights of people in two trials at various timepoints.

proc sgplot data=Stomach_performance noborder;/* Create a graph from the weather.2 data, removing the legend and chart borders */
title1 c=white bcolor=black height=10pt ' Performance data';/* Set title name and settings */
title2 c=white bcolor=navy height=10pt 'Start/End Weights';/* Set title name and settings */
styleattrs datacolors=(darkgreen white);
vbar Time / response= weight stat=mean group=Trial groupdisplay=Cluster /* Set the graph to be a vertical bar plot and specify that the groups are clustered by gender */
dataskin=MATTE filltype=SOLID limitstat=stderr; /* Apply seetings to apperance of the bar plot*/
xaxis label="Weighing point" discreteorder=data;
yaxis label="Weights (Kg)" ;
run;
It produces the below plot .
I have looked elsewhere but cannot seem to find if it possible to add in significance indicators on this chart?

Thanks,
D

Screenshot 2022-08-18 at 13.26.05.png

1 REPLY 1

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 612 views
  • 0 likes
  • 2 in conversation