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...

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1577 views
  • 0 likes
  • 3 in conversation