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

How to control the length of the whisker in a box plot produced by SGPLOT?


In GPLOT, we can specify a percentile to control the length of the whiskers in box plots within the range 00 through 25 by using <00…25> in "Interpol=BOX<option(s)><00...25>".  How can we do the same in SGPLOT? By default it seems the whiskers in a box plot by SGPLOT extends to 1.5* IQR (Intra-quartile range). Is there an easy way (option) to adjust the length of a whisker in SGPLOT?


Thanks,

Charlie


1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14


Such an option has been added for SAS 9.4.  With SAS 9.3, you can get a box plot with custom whisker lengths by computing your own statistics and using SGPLOT to plot them.  This blog article describes such a case.   

View solution in original post

2 REPLIES 2
Jay54
Meteorite | Level 14


Such an option has been added for SAS 9.4.  With SAS 9.3, you can get a box plot with custom whisker lengths by computing your own statistics and using SGPLOT to plot them.  This blog article describes such a case.   

CLiu
Calcite | Level 5

Thanks Sanjay for the quick response! good to know that such option as been added for SAS 9.4

The mean markers cannot be produced directly using the "Interpol=BOX<option(s)><00...25>" in GPLOT, is it true? we may have to overlay a scatter plot with mean markers with a box plot in GPLOT?

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
  • 2 replies
  • 1955 views
  • 0 likes
  • 2 in conversation