Currently I have the following MWE:
\documentclass[a4paper]{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{external,colormaps,groupplots,statistics}
\pgfplotsset{compat=1.8}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,positioning}
\begin{document}
\begin{tikzpicture}
\begin{groupplot}[
boxplot/draw direction=y,
ylabel={segmentation time (secs)},
xtick={1,2},
width=6cm,
height=8cm,
boxplot/box extend=0.5,
xticklabels={visualization disabled,visualization enabled},
x tick label style={
text width=2.5cm,
align=center
},
group style={
group size=2 by 2,
horizontal sep=2cm,vertical sep=2cm
},
]
\nextgroupplot[title=dataset 1]
\addplot+[boxplot]
table[row sep=\\,y index=0] {
data\\
60\\
516\\
710\\
503\\
1253\\
};
\addplot+[boxplot]
table[row sep=\\,y index=0] {
data\\
759\\
419\\
309\\
883\\
299\\
};
\nextgroupplot[title=dataset 2]
\addplot+[boxplot]
table[row sep=\\,y index=0] {
data\\
516\\
480\\
1356\\
200\\
736\\
};
\addplot+[boxplot]
table[row sep=\\,y index=0] {
data\\
684\\
340\\
700\\
325\\
377\\
};
\nextgroupplot[title=dataset 3]
\addplot+[boxplot]
table[row sep=\\,y index=0] {
data\\
956\\
320\\
811\\
330\\
381\\
};
\addplot+[boxplot]
table[row sep=\\,y index=0] {
data\\
280\\
749\\
392\\
870\\
488\\
};
\nextgroupplot[title=dataset 4]
\addplot+[boxplot]
table[row sep=\\,y index=0] {
data\\
658\\
579\\
891\\
545\\
558\\
};
\addplot+[boxplot]
table[row sep=\\,y index=0] {
data\\
514\\
630\\
416\\
559\\
462\\
};
\end{groupplot}
\end{tikzpicture}
\end{document}
Which nets me the following output (which is usable I guess):

I would like to have them all in a single picture though. Kind of like the way you can group the boxes in box charts. So, to describe it more precisely:
- X ticks are dataset 1 through 4
- On every x tick are two box plots, one for disabled and one for enabled
- For clarity each pair of boxplots should be visually grouped together (maybe shift them towards eachother?)
I have been searching through the PGFPlots manuals and web but haven't found anything that works so far. Can anyone help me out?
