Box plots with outliers and variable width?

Reply
New Contributor
Posts: 4

Box plots with outliers and variable width?

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.

Respected Advisor
Posts: 3,799

Re: Box plots with outliers and variable width?

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.

BOXWIDTH

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.

New Contributor
Posts: 4

Re: Box plots with outliers and variable width?

Posted in reply to data_null__

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.

Ask a Question
Discussion stats
  • 2 replies
  • 218 views
  • 0 likes
  • 2 in conversation