Hello all, I'm having an issue with a graph that consists of Hbar, Scatter, and Annotations. To simplify the issue, I've created sample data as follows. data test1; length name run1_stop run2_stop $ 50; name = "Bob"; team = "Team AAA"; run1 = 10; run2 = 6; run1_stop = "Need Water"; run2_stop = "Need Rest"; run; data test2; length name run1_stop run2_stop $ 50; name = "Bill"; team = "Team AAA"; run1 = 8; run2 = 13; run1_stop = "Need Rest"; run2_stop = "Need Water"; run; data final; set test1 test2; run; Dataset looks like: My goal is to create a bar graph with the following: -X-axis = Name of runner. -Y-axis = Distance ran. -Annotations to show run1 vs run2. -Markers to show why the run ended (via scatter plots). These must be consistent throughout the entire graph. Ie if a runner stopped due to "Need Rest," then the marker used should be the same for all runners and every run (run1, run2, etc). So far I've using the following relevant lines of code with Proc Sgplot: (1) hbarparm category = name response = run1 / discreteoffset = -0.065 (2) hbarparm category = name response = run2 / discreteoffset = 0.065 (3) scatter x = run1 y = name / group = run1_stop discreteoffset = -0.065; (4) scatter x = run2 y = name / group = run2_stop discreteoffset = 0.065; Below is what I'm getting: Here is what I would like (created using MS Paint): Is this something that can be done using SAS graphics? Appreciate any assistance!
... View more