I have an issue with printing/creating black and white and greyscale images with ggplot2.
I have been trying to make some black and white, and greyscale graphics for publication, they look perfect on mine and everyone's monitors, but came out in colour when printed. (An awful photo of the result is here: http://i.imgur.com/UuB6A.jpg)
p <- qplot(displ, hwy, data = mpg) p <- p + facet_wrap(~ cyl) + theme_bw() pdf("testplot.pdf",width=7.6,height=3.6) p dev.off()
The generated image and output pdf looks perfect onscreen, but the facets borders and titles are in a shade of red when printed. Try it!
I get the same results when outputting to a .png, and also when I print directly from the R graphics window. According to my friend with some experience with image manipulation, the images I've sent him have bits of colour in them according to the colour histogram.
Is there any way to generate true B&W and greyscale images using ggplot? I tried forcing greyscale (perhaps very naively!) by using 'colormodel="gray"' in the pdf() command, but it does not make a difference.
Any help would be greatly appreciated.