Jitter Scatter Plot with Boxplot overlaid SAS

Jitter Scatter Box and Boxplot overlaid SAS Macro

These days customers are more demanding when it comes to graphs, and want to obtain a lot of information fast from a single graph. There’s been a lot of interest on overlaying a Boxplot on top of a Scatter Plot, and there was no easy way to do that with the Scatter and Vbox Statements in Proc SGPLOT, let along producing a jittered scatter plot. The boxplot is produced by cleverly using the Vector statement in SGPLOT. Hope the code helps!