Running into the following error when I try to use ggplot2 and plot within the console after upgrading to Yosemite:
Error in (function (display = \"\", width
Had the same problem with R and OS X Yosemite (but with libpng15.15.dylib file). For me the following steps were helpful:
install latest XQuartz 2.7.7
sudo ln -s /opt/X11/lib/libpng15.15.dylib /usr/local/lib/libpng15.15.dylib