I wish to make a boxplot with data in this format:

Value, Frequency

0, 128329

1, 20390

2, 230

3, 32

4, 3

etc. Rather than expand this into a flat array, is there some way to pass in weights for values? Some of the frequencies I’m working with are very large, and so the resulting arrays would be huge. AFAIK, all the summary statistics I need for the plot can be computed from data in this form.

Thanks!

Boxplot, as it currently stands, wants the raw data. Some recently added

features allow you to manually specify the median and it's confidence

intervals, but nothing else.

I've been meaning to submit a PR for boxplot where it's split into the

public method and private drawing function that just takes a dictionary of

the values (R does this, IIRC). That wouldn't directly help you in this

situation, but you'd be one step closer.

-paul

## ···

On Wed, Mar 6, 2013 at 2:00 PM, Clifford Lyon <clifford.lyon@...287...>wrote:

I wish to make a boxplot with data in this format:

Value, Frequency

0, 128329

1, 20390

2, 230

3, 32

4, 3

etc. Rather than expand this into a flat array, is there some way to pass

in weights for values? Some of the frequencies I'm working with are very

large, and so the resulting arrays would be huge. AFAIK, all the summary

statistics I need for the plot can be computed from data in this form.