|
From: Clifford L. <cli...@gm...> - 2013-03-07 18:58:30
|
Got it - thanks. On Wed, Mar 6, 2013 at 5:17 PM, Paul Hobson <pmh...@gm...> wrote: > > On Wed, Mar 6, 2013 at 2:00 PM, Clifford Lyon <cli...@gm...>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. >> >> > 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 > |