Skip to content

Boxplot of multiple vectors with different lengths

3 messages · Thomas Adams, Bert Gunter

#
Sorry -- previous versiuon prematurely sent. Full version is:

 Yikes! ?You should never have to do this sort of thing (writing stuff
 out to files, etc.)

 What is wanted, I believe, is ?do.call as in

 do.call(boxplot, z)

 where z is list(a,b,c) ? as Sarah described.

 However, I think you might do even better in terms of controlling
 options, labels, etc. if you would get the data into standard flat
 file format (data frame) as

Result     Source
 1            a
  3           b
2             b
  5         c
... etc.

(This is easy to do in R and via many packages.)
and then use he formula interface in the lattice ?bwplot  function for th eplot.

Cheers,
Bert

  
    
#
Thomas:

I stand corrected. Thank you.

-- Bert
On Mon, Dec 12, 2011 at 2:21 PM, Thomas Adams <thomas.adams at noaa.gov> wrote: