Daniel Egan
2013-Apr-05 20:31 UTC
[R] Undesired vertical lines in png file output using 'cairo-png'
Hello all, I'm writing a file to PNG on Windows 7 using 'cairo-png'. I've been using it without problem for a while, but abruptly I'm getting what look like unplotted areas. I'm using the cairo-png specifically because it sucessfully generates a transparent background, whereas 'windows' doesn't. The actual issue has a lot of code I don't think it's useful to post, but the relevant lines of code are below: png(file="FooBar.png", w=900,h=500,units="px",bg="transparent",family="Lato",type="cairo-png",antialias="none") par(mar=c(5,4,3,0),bty="n",mfrow=c(1,2)) dev.off() You can see the difference in outputs here: http://stackoverflow.com/questions/15839198/r-png-has-undesired-vertical-lines-plot-doesnt Note that using 'windows' does not result in the error - it's something specific to 'cairo-png'. The vertical lines appear to be empty, i.e. transparent. Any guidance or assistance would be greatly appreciated. Regards, Daniel Egan -- [image: Betterment]*Daniel Egan |* Director of Behavioral Finance and Investing at Betterment.com <http://betterment.com/> | Follow us on Twitter<http://twitter.com/betterment> and Facebook <http://www.facebook.com/betterment> contact | dan@betterment.com - Office: 212.228.1328 - Mobile: 347-931-4897 [[alternative HTML version deleted]]