03-28-2017 04:39 PM - edited 03-28-2017 08:58 PM
I am struggling with creating a visualization that represents the scatter/standard deviation...around a particular measure.
Adding the simple error bars has been an issue; getting a box plot another issue...
My data has daily measures and I want to aggregate them by month, showing the average and for example the 1st and 3rd Quartile.
I have started using a custom graph with a vector and a line graph. But I got no where...
I guess, what I am looking for are suggestions of visualizations that have worked in SAS VA. There are plenty out there in SAS, excel...but I would like to know how is has been represented in SAS VA.
i will keep this post updated in case I find one way.
Just to give an example what I have been trying out.
Stock high-Low Profile Plot
When I have the source data aggregated in te lvel that I want to display, the stock high-low plot seems to do the job.
However, when the data is daily and I would like the graph to aggregate my measurements monthly, I achieve a very different looking graph. Table with aggregation is fine. Just not the graph
The Output Graph (very different...)
If anyone knows the answer, what i might be doing wrong, it would be a massive help.
email back, if you have dealt with STD/scatter in another way...
03-31-2017 02:32 AM
You can use a custom graph to build this. To create the custom graph, you can use this button when on the report obejcts tab.
Put two barcharts on top of each other and change the bar spacing for the second bar to make it smaller.
Next, edit the roles to change the names to be something sensible. Also allow multiple data assignments for the error bar because you will need to use two data points there.
Go to the properties of the first cell, the one with the two barcharts in it, and set the way color are given, this will ensure, that we only have to set the color for the error bars.
Set the grouping style for the second bar chart, the one that displays the error bars, to stack, so the two measures will be put on top of each other.
That is basically it, you might want to set other properties on how the bar are displayed. Save your custome graph to a folder and add it to the report objects tab.
You need two new aggregated measures computed with the follwoing expressions, you have to adapt it for the data item you want to display (change the name of 'HorsePower'n to the name you need.
errorBarMin, that is the value for the first measre on the errorBars role:
Avg [_ByGroup_] ('Horsepower'n) - ( 1 * StdDev [_ByGroup_] ('Horsepower'n) )
the second aggregated measure looks like this:
errorBars, that is the actual value for the error bars:
2 * StdDev [_ByGroup_] ('Horsepower'n)
Use the custom graph in your report like this:
Learned this techniques from @PetriRoine.
04-02-2017 04:42 PM
I have tried to replicate the graph. However I have encounter a problem and I do not know which step I may have missed. The error bars are starting from 0, as the image below:
I have select the option:
04-03-2017 02:28 AM
First I would change the colors of the two measures errorBarMin and errorBars so that you can distinguish them from each other, currently they have the same color.
Second I would display the new data items within a list table to see whether the calculated numbers are correct.
04-03-2017 05:33 PM
thanks so much. Yes it was the colour!
I had done the table and the calculations were correct.
If you have more useful customized graphs, please feel free to share.