As promised, here is a better combined AE-CM graph, using some of the UI improvements suggested by our UI expert, Riley. His suggestions helped to reduce the clutter in the graph, while still keeping all the features preferred by our users. Click on the graphs for a higher resolution image.
SAS 9.3 AE-CM Graph:
Key improvements are:
- The events are ordered from top to bottom, for better readability.
- The AE and CM labels use camel case text, instead of all caps. This is easier on the eyes.
- The intensity of outline for the event bars is reduced.
- The font for the X2 axis (top) is reduced to reduce clutter.
SAS 9.4 AE-CM Graph:
In the SAS 9.4 version, the main addition is the use of the alternating gray bands on Y axis instead of the grids. These help align the items horizontally. This could be done with some extra work in the SAS 9.3 graph, but is easier with SAS 9.4.
Code for AE-CM graph:
title "Combined AE and CM for Patient Id = &pid (SAS 9.4)"; proc sgplot data=AE_CM_sort dattrmap=attrmap; refline 0 / axis=x lineattrs=(color=black); highlow y=name low=stdy high=endy / type=bar group=sev lineattrs=(color=gray pattern=solid) barwidth=0.8 lowlabel=label lowcap=locap highcap=hicap attrid=Severity nomissinggroup labelattrs=(size=7 weight=bold); scatter y=name x=stdate / x2axis markerattrs=(size=0); xaxis grid display=(nolabel) offsetmax=0.02 values=(&minday2 to &maxday by 2); x2axis display=(nolabel) offsetmax=0.02 values=(&mindate2 to &maxdate); yaxis grid reverse display=(noticks novalues nolabel); /*-- SAS 9.3--*/ /*--yaxis reverse display=(noticks novalues nolabel) colorbands=odd colorbandsattrs=(color=cxf5f5f5);--*/ /*--SAS 9.4--*/ run;
Full SAS code: Combined_AE_CM
I am hoping to hear feedback from users in the field on the pros and cons of this configuration.