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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 647 views
  • 0 likes
  • 2 in conversation