Plot a boxplot annotated by the Kruskal-Wallis p-value. Uses the function boxplot
for the actual drawing.
verboseBoxplot(x, g, main = "", xlab = NA, ylab = NA,
cex = 1, cex.axis = 1.5, cex.lab = 1.5, cex.main = 1.5,
notch = TRUE, varwidth = TRUE, ...,
addScatterplot = FALSE,
pt.cex = 0.8, pch = 21, pt.col = "blue", pt.bg = "skyblue",
randomSeed = 31425, jitter = 0.6)
numerical vector of data whose group means are to be plotted
a factor or a an object coercible to a factor giving the groups that will go into each box.
main title for the plot.
label for the x-axis.
label for the y-axis.
character expansion factor for plot annotations.
character expansion factor for axis annotations.
character expansion factor for axis labels.
character expansion factor for the main title.
logical: should the notches be drawn? See boxplot
and
boxplot.stats
for details.
logical: if TRUE
, the boxes are drawn with widths
proportional to the square-roots of the number of
observations in the groups.
other arguments to the function boxplot
. Of note is the argument las
that specifies label orientation. Value las=1
will result in horizontal labels (the default), while
las=2
will result in vertical labels, useful when the labels are long.
logical: should a scatterplot of the data be overlaid?
character expansion factor for the points.
shape code for the points.
color for the points.
background color for the points.
integer random seed to make plots reproducible.
amount of random jitter to add to the position of the points along the x axis.
Returns the value returned by the function boxplot
.