BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Pittma050
Calcite | Level 5

In SAS Studio, I have tried using the Box Plot under Graph, but it does not allow for side-by-side box plots. Therefore, I am not sure where to find this capability.

 

Thanks,

Jemall 

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26
Hi: You may have to write code to use SGPANEL. That's why I showed you the code, there may not be a task for it. If your instructor wants side-by-side Boxplots, then he/she should explain how they want you to accomplish them.

Cynthia

View solution in original post

10 REPLIES 10
Cynthia_sas
Diamond | Level 26

Hi:

  Have you looked into SGPANEL?

box_plot_sgpanel.png

if you have a variable you want to group by, then SGPANEL would be the way to achieve what you want.

 

Cynthia

Pittma050
Calcite | Level 5
Cynthia,


I do not see a SGPANEL nor do I know how to find it. This is only my second week in class and using SAS OnDemand for Academics (SAS Studio). So, I am learning as I go.


Thank you so much for your assistance,


Jemall
Cynthia_sas
Diamond | Level 26
Hi: You may have to write code to use SGPANEL. That's why I showed you the code, there may not be a task for it. If your instructor wants side-by-side Boxplots, then he/she should explain how they want you to accomplish them.

Cynthia
Pittma050
Calcite | Level 5

Thank you,

 

For your insight, knowledge, and help.

 

Jemall

Reeza
Super User

@Pittma050  just a quick note that I've merged your threads into one post as they were identical. 

himself
Pyrite | Level 9

Hello i wonder what happens when the  categories in the x axis are more than 30 

Reeza
Super User

@himself it depends on how large the size of the graphic is...for a 30" page it may be fine, for a standard letter page it may not be. If you have that many it's likely better to create a few groups of graphs rather than try and cram them into one graph IMO. 

WeiChen
Obsidian | Level 7

use the CATEGORY= option to specify a group variable. (You can also use the GROUP= option, which adds color.) FOr an example, see

https://blogs.sas.com/content/iml/2012/08/22/categories-vs-groups-in-proc-sgplot.html

 

Pittma050
Calcite | Level 5

I am using SAO OnDemand for Academics. In SAS Studio, I have tried using the Box Plot under Graph, but it does not allow for side-by-side box plots. Therefore, I am not sure where to find this capability. I have looked online to find the answer, called the help desk, and look through the manual. None, have giving me an answer. 

 

Thanks,

Jemall