Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 930

A graphical display to summarize the distribution of a sample. It displays five numbers plus (possibly) some outliers - those five points being the median, hinges (approximate quartiles), and the largest and smallest value not counting any points marked as outliers.

15 votes

What are some alternatives to a boxplot?

A boxplot isn't that complicated. … The R software implements a slightly different rule but the source code is available if you want to study it (see the boxplot() and boxplot.stats() functions). …
User1865345's user avatar
  • 10.3k
6 votes

How can I draw a boxplot without boxes in R?

One interesting application of R's stripchart() is that you can use jittering or stacking when there is some overlap in data points (see method=). With lattice, the corresponding function is stripplot …
kjetil b halvorsen's user avatar
8 votes

Highlighting significant results from non-parametric multiple comparisons on boxplots

[1,i]], y[as.numeric(g)==idx[2,i]]))$p.value # which groups are significantly different (arranged by column) signif.pairs <- idx[,which(pval.res<alpha.level)] boxplot
chl's user avatar
  • 54.3k
6 votes
Accepted

Creating a plot with boxplots ranked by quantiles in R

rnorm(n) library(Hmisc) xq <- cut2(x, g=10, levels.mean=TRUE) ym <- tapply(y, xq, mean) # display the mean for each decile plot(as.numeric(levels(xq)), ym, pch="x", xlab="x", ylab="y") # add the boxplots boxplot … (y ~ xq, add=TRUE, at=as.numeric(levels(xq)), axes=FALSE) abline(v=cut2(x, g=10, onlycuts=TRUE)) If data are in a data.frame, just add a data= argument when calling boxplot(). …
chl's user avatar
  • 54.3k
6 votes

How to customize axis labels in a boxplot?

Here's a reproducible example, that you might adapt to fit with what you want to achieve with your data. opar <- par(las=1) df <- data.frame(y=rnorm(100), x=gl(2, 50, labels=letters[1:2])) with(df, p …
chl's user avatar
  • 54.3k
8 votes

Labeling boxplots in R

Try something like this for a standalone version: bxp <- boxplot(rnorm(100), horizontal=TRUE, axes=FALSE) mtext(c("Min","Max"), side=3, at=bxp$stats[c(1,5)], line=-3) Note that you can get some information … when calling boxplot, in particular the "five numbers". …
chl's user avatar
  • 54.3k
14 votes
Accepted

Boxplots as tables

I tend to think that boxplots will convey more effective information if there are numerous empirical distributions that you want to summarize into a single figure. If you only have two or three groups …
chl's user avatar
  • 54.3k
5 votes
Accepted

Reorder categorical data in ggplot2

Would that help? x <- gl(2, 20, 40, labels=c("KO","WT")) y <- rnorm(40) qplot(x,y) qplot(relevel(x, "WT"),y)
chl's user avatar
  • 54.3k