BookmarkSubscribeRSS Feed
4 REPLIES 4
Oluwole
Fluorite | Level 6

I will appreciate getting a sas code to produce a plot as depicted here. Thank you.

Reeza
Super User
I’m assuming your title of ‘box plot’ is a typo, is that correct?
Ksharp
Super User
proc sgplot data=sashelp.class;
dot name/response=weight markerattrs=(symbol=trianglefilled color=blue) nostatlabel;
dot name/response=height markerattrs=(symbol=circlefilled color=red) nostatlabel;
dot name/response=age markerattrs=(symbol=circlefilled color=black) nostatlabel;
refline 80/axis=x lineattrs=(pattern=dash);
xaxis display=(nolabel);
keylegend /location=inside position=bottomright across=1;
run;

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2026 views
  • 4 likes
  • 3 in conversation