BookmarkSubscribeRSS Feed
Karteek
Calcite | Level 5
Hello folks, can some one help me with this.

I have data columns in this format.

Group |Var 1 |Var2 |Var3| .....

I need Box plots of all variables side by side in one graph, for each group.
so I could see patterns of all variables by group.
4 REPLIES 4
DanH_sas
SAS Super FREQ
What version of SAS do you have?
Karteek
Calcite | Level 5
I.m using SAS 9.1
DanH_sas
SAS Super FREQ
I do not havea good solution for SAS 9.1; but if you have access to SAS 9.2, you should be able to do this using PROC SGPANEL. Do you have acces to SAS 9.2?
GraphGuy
Meteorite | Level 14
Could you describe a little more of what you're wanting?

You might can use traditional proc gplot's box plots, or proc boxplot.

I see your data has a 'Group' variable, but do the plots have to be "grouped"
into these groups, per-say (within the same single plot axis)?
If not, then you could maybe do some tricks such as using the 'Group'
variable as a 'by variable' instead, producing a separate plot for each
group ... and then tiling these plots side-by-side using "ods htmlpanel"
(or greplay), for example.

And if all else fails, you can "draw" custom boxplots with annotate
(if all else fails).

Also, I notice you have several separate "variables" - depending on what
you're wanting to do, you might need to "proc transpose" the data to turn
those variables into values, in order to conveniently create the plot.

Really need to see some example data, and get more details on what
you're wanting to do to give specifics though...

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 2350 views
  • 0 likes
  • 3 in conversation