Steve.Rowley@sanofi-aventis.com
2005-Mar-31 18:29 UTC
[R] pictex graphics device and color
Is the pictex graphics device known not to support color? In R 2.0.1 Patched (2004-11-17), it produced very pretty output: ## pictex(file = "modern-metatheonomy.tex", bg = "transparent"); ## plotData(data); ## dev.off() ... but it appears to have ignored all color information. __________ Steve Rowley <steve.rowley at sanofi-aventis.com> Cambridge, MA: (617) 768-4054 ICQ: 52-377-390
Hi Steve.Rowley at sanofi-aventis.com wrote:> Is the pictex graphics device known not to support color? > > In R 2.0.1 Patched (2004-11-17), it produced very pretty output: > > ## pictex(file = "modern-metatheonomy.tex", bg = "transparent"); > ## plotData(data); > ## dev.off() > > ... but it appears to have ignored all color information.Unfortunately, the source code for the pictex driver contains no handling of colour. Not sure how hard it would be to add; https://svn.r-project.org/R/trunk/src/library/grDevices/src/devPicTeX.c is the file to look at if you're interested. Paul -- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 paul at stat.auckland.ac.nz http://www.stat.auckland.ac.nz/~paul/
On Thu, 31 Mar 2005 Steve.Rowley at sanofi-aventis.com wrote:> Is the pictex graphics device known not to support color?Yes, amongst other settings like lwd and metric info for character output. If you read the code you will see that the arguments fg and bg are ignored. In any case, there is no obligation for a graphics device to support transparency, and in particular pictex() predates its introduction into R. As far as I am aware, pictex is a plain TeX package (that also more-or-less works in LaTeX: it is barely mentioned in the LaTeX Companion referred to on the help page, nor covered in any detail in the LaTeX Graphics Companion), and plain TeX per se does not support colour.> In R 2.0.1 Patched (2004-11-17), it produced very pretty output: > > ## pictex(file = "modern-metatheonomy.tex", bg = "transparent"); > ## plotData(data); > ## dev.off() > > ... but it appears to have ignored all color information.-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595