Skip to content
Prev 86861 / 398513 Next

Boxplot Help for Neophyte

On Mon, 2006-02-20 at 20:27 +0000, Alex Park wrote:
Alex,

You can use the 'names' argument to boxplot():

  boxplot(myData1, myData2, myData3, 
          names = c("myData1", "myData2", "myData"))

If you want additional flexibility, note that by default (unless you
change the 'at' argument), the group plots are drawn at integer axis
values of 1:n, where 'n' is the number of groups. See the 'at' argument
in ?boxplot.  You can then use mtext() to draw further text if desired.

HTH,

Marc Schwartz