Skip to content
Prev 256718 / 398506 Next

R plots pdf() does not allow spotcolors?

Prof Brian Ripley <ripley <at> stats.ox.ac.uk> writes:
OK. I was misremembering the good old days when I used to hack
the PostScript coming out of gnuplot.  I must admit that when I look
at PDFs coming out of R, as in

pdf("test.pdf")
plot(1:10,1:10,pch=16,col=rep(1:5,2),cex=2)
dev.off()

  I still see text-like bits like

/sRGB cs 0.000 0.804 0.000 scn

  that are clearly (by experiment) hackable.
  That doesn't mean it's easy or a good idea in practice.

   Re Ted's comment that it's better to compute in R and draw
figures outside: that really depends on one's comfort level with
various tools and the tradeoffs between (1) command-line
control and reproducibility (2) the ability to do subtle visual
design adjustments by hand.