5
$\begingroup$

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?

$\endgroup$
1
7
$\begingroup$

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?

$\endgroup$
1
  • 1
    $\begingroup$ Oh... gee... I searched for such an option. But once again (this is getting ridiculous!), the great @kglr saves the day. ($\checkmark$) $\endgroup$ Dec 28 '21 at 3:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.