BookmarkSubscribeRSS Feed

Adding Standard Deviation Error Bars to a Visual Analytics Bar Chart

Started ‎09-06-2019 by
Modified ‎09-06-2019 by
Views 2,621

One of the questions my colleagues frequently ask is if SAS Visual Analytics can create visualizations similar to the graphs that they have built using traditional SAS graphing procedures (such as PROC GCHART). In some cases the graph that they wish to recreate is a relatively a simple plot, but with some statistical window dressing. Take a look at this sample from support.sas.com. What a cool looking graph! It’s a bar chart with error bars and min/max dots annotated on top of it.

 

Well I have great news! This is where the SAS® Graph Builder really shines! It allows report developers to combine several different report objects and produce unique graphs that are suited to their specific reporting needs! These new custom graphs can then be used interactively in SAS Visual Analytics Reports.

 

Using the SAS® Graph Builder, I was able to produce the following report:

 

BarChartWithErrorBars.png

 

This graph not only allows us to present the metric’s average value, but we can also display additional statistics such as the standard deviation and min/max values!

 

Data is obtained from this support.sas.com sample and processed with SAS Visual Analytics 8.3.1.

 

All supporting source code for this report can be found in the following GitHub repository:

 Take Me to GitHub!

Version history
Last update:
‎09-06-2019 02:54 PM
Updated by:
Contributors

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Article Labels
Article Tags