Hi SAS community, I am new here and struggling to produce the graph figure attached here with datalinepatterns. The goal is to produce a bivariate graph of Q2(Have a condition needing care right away coded as "yes" or "No") and Q71(Race/Ethnicity coded as "Other/Mixed", "Black", "White"). See attachment labeled "datalinepatterns_graph.doc". Just a note: All my variables are categorical. Here's my code and the output from the code is attached as well. Please see graph output in attachments. Proc sgplot data = WORK.SASA; yaxis valueattrs=(size=12pt) label = "Ethnicity"; xaxis valueattrs=(size=12pt) label = "Percentage"; hbar Q71 / GROUP = Q2 stat=Percent barwidth=0.85 seglabel dataskin=pressed; title 'Condition needing urgent care vs race/ethnicity'; ods graphics / attrpriority=none; styleattrs datalinepatterns=(dash shortdash); keylegend / location=outside position=bottom across=1; Run; For reference, I am using SAS 9.4. I'm unable to include the dataset on here. Thank you for your help!
... View more