Skip to content
Prev 300750 / 398506 Next

cenbox(): Changing Default x-axis Group Labels

Hi Rich,

I don't have a cenbox() function that I can find, but your solution will
(probably? hopefully?) be along the lines of:


foo <- boxplot( y ~ x, data=sdf, plot=FALSE)

foo$names <- ifelse(foo$names, "Label for TRUE", "Label for FALSE")

bxp(foo)


where sdf is a dataframe containing your data and y and x are appropriate
variables in it.