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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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