BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
UcheOkoro
Lapis Lazuli | Level 10

Hello,

 

Please, I need help plotting 3 caterpillar plots in one graph. My y axis has the proportions of violation(with CL) and the x axis has the providers. I would like to create 3 plots from the providers. The third variable is the "designation" of the providers- resident, APP and faculty. Please find below my SAS codes.

Thank you.

proc sgplot data=violation_score4 noautolegend;
   scatter y=Violation_new x=Provider  / yerrorlower=Lower_CL yerrorupper=Upper_CL  markerattrs=(symbol=diamondfilled);
   refline 0 / axis=y;
   xaxis grid;
   yaxis grid display=(nolabel) discreteorder=data reverse;
  run;
1 ACCEPTED SOLUTION

Accepted Solutions
UcheOkoro
Lapis Lazuli | Level 10
proc sgplot data=violation_score4 ;
   scatter y=Violation x=Provider  /group=Designation yerrorlower=Lower_CL yerrorupper=Upper_CL  markerattrs=(symbol=diamondfilled);
   refline 0 / axis=y;
      xaxis grid;
   yaxis grid  discreteorder=data reverse;
   keylegend  / location=outside;
        run;

View solution in original post

1 REPLY 1
UcheOkoro
Lapis Lazuli | Level 10
proc sgplot data=violation_score4 ;
   scatter y=Violation x=Provider  /group=Designation yerrorlower=Lower_CL yerrorupper=Upper_CL  markerattrs=(symbol=diamondfilled);
   refline 0 / axis=y;
      xaxis grid;
   yaxis grid  discreteorder=data reverse;
   keylegend  / location=outside;
        run;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 842 views
  • 0 likes
  • 1 in conversation