R postscript command (colormodel cmyk) not working?

355 views Asked by At

I'm producing an EPS image in R, with black (box and axes) and red (points).

postscript('test.eps',colormodel='cmyk')
plot(1:10,col='red')
dev.off()

Using ImageMagick's identify, shouldn't it be in CMYK color model, instead of sRGB?

$ identify test.eps 
test.eps PS 576x756 576x756+0+0 16-bit sRGB 9.83KB 0.000u 0:00.000
1

There are 1 answers

0
beginner6789 On

Try identify -verbose test.eps and see the sRGB is due to ImageMagick using the ghostscript sRGB icc profile. That is how ImageMagick renders the eps for display purposes. The RGB is color on a black background like a computer while CMYK is color on a white background like paper. The identify program must be explaining the display of the eps instead of the source eps. I don't have enough points to comment.