Can anyone tell me whether it is possible to create a box plot that has both outliers and variable width of box depending on group size. On my attempts I have lost the variable width when i start using summary data rather than raw data to input the outliers. Is there a way round this?
Many thanks.
You don't mention how you are creating the boxplots. If you use GTL BOXPLOTPARM you can include a STAT=BOXWIDTH in the PARM data as a function of N.
specifies the width of the boxes as a ratio of the maximum possible width. The range of values is 0 (narrowest) to 1 (widest). The default is 0.4. If the Y value corresponding to BOXWIDTH is in range, then it overrides the setting that is specified in the BOXWIDTH= option.
Hi, thank you for your reply and sorry for not specifying method. Am new to box plots and quite new to sas so hope this is appropriate info.. I was using proc boxplot with boxstyle = schematic and boxwidthscale = 1 and was using summary data.
I did try and implement the boxplotparm method just following the example code in the sas documentation but had an error stating "unable to load java virtual machine" so guessing this functionality is not available in the version of sas (9.2) I have?
Thanks again for your help.
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.
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.