5

I would like to duplicate a BoxWhiskerChart, such as this:

enter image description here

but I do not have access to the full dataset that generated it. I'm happy to type in by hand summary statistics (such as mean, 25%, 75%, etc.), but cannot see how do to that given the raw function call requires a full data set.

In short, for the above I would be happy to enter by hand data of the following sort:

BoxWhiskerChart[{{.3,.4,.55,.65,.9},{.1,.2,.5,.55,.6}}]

but of course this is not the proper format.

Any suggestions?

David G. Stork
  • 41,180
  • 3
  • 34
  • 96

1 Answers1

7

Use the Method suboption "BoxRange" -> Identity:

summaryStats = {{.3, .4, .55, .65, .9}, {.1, .2, .5, .55, .6}};

BoxWhiskerChart[summaryStats, Method -> {"BoxRange" -> Identity}]

enter image description here

Related Q/As:

  1. Tuning BoxWhiskerChart

  2. Possible to draw Boxplot using quartiles only?

  3. How to access box-and-whisker specifications from custom ChartElementFunction?

kglr
  • 394,356
  • 18
  • 477
  • 896
  • 1
    Oh... gee... I searched for such an option. But once again (this is getting ridiculous!), the great @kglr saves the day. ($\checkmark$) – David G. Stork Dec 28 '21 at 03:05