When I compile the following code with ybar stacked option and the request for newsprint background the compiler tells me
! Extra }, or forgotten \endgroup.
\endpgfonlayer ->\endgroup \hss \egroup
\endgroup
l.31 \end{axis}
When I compile with just ybar I get what I expect, with the background image.
When I compile with ybar stacked and the background request commented out I get what I expect.
Here's my MWE. Note that the plot makes no sense and there's nothing there to stack. The stacking works just fine with the real data and labels, which I removed to isolate the problem and minimize the MWE. (That took me quite a while.)
TeX version:
$ pdflatex -version
MiKTeX-pdfTeX 2.9.4535 (1.40.13) (MiKTeX 2.9)
code:
\documentclass{standalone}
\usepackage{tikz,pgfplots}
\usepackage{pgfplotstable}
%deal with warning message in log
\pgfplotsset{compat=1.8}
\newcommand{\images}{../images}
\begin{document}
\pgfdeclarelayer{background}
\pgfsetlayers{background,main}
\pgfplotstableread[col sep=comma]{
category, mass, other
{dollars\\\$3.14m}, 31, 69
}\warren
\begin{tikzpicture}
\begin{axis}[
ybar stacked,
% ybar,
]
\addplot table [x expr =\coordindex, y=mass] {\warren};
% with the following lines in place
% compilation fails with ybar stacked, works with ybar
\begin{pgfonlayer}{background}
\node{\includegraphics{\images/newsprint}};
\end{pgfonlayer}
\end{axis}
\end{tikzpicture}
\end{document}
See Combine pgfplots on common background for what the background will look like when the question has been answered.

ybardoesn't turn on the layers so you get away with it but stacked does and previous layers are overwritten. – percusse Jun 30 '13 at 20:59clip=false. Does Jake's solution work when you switch to stacked plots? – percusse Jun 30 '13 at 21:31clip=falsedoes help with your code, but the background image covers material (legend and title) I've placed outside the plot area. Should I post a new question, or dramatically edit this one, in either case incorporating your idea and asking for further help? PS - isn't it rather late in Rotterdam for you to be responding to queries in real time? – Ethan Bolker Jun 30 '13 at 21:48mwepackage for dummy images. Just put your expected workflow and we work on it. Otherwise every piece is adding another complication :) – percusse Jun 30 '13 at 21:50