Skip to content
Prev 280108 / 398506 Next

Boxplot of multiple vectors with different lengths

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