Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.64.0612121711410.32380@gannet.stats.ox.ac.uk>
Date: 2006-12-12T17:26:27Z
From: Brian Ripley
Subject: black and white colormodel for postscript figure
In-Reply-To: <20061212162703.229649E047@webmail222.herald.ox.ac.uk>

On Tue, 12 Dec 2006, Bent Nielsen wrote:

> I would like to produce simple black and white postscript figures for
> publishing.   A black/white or grayscale or CMYK colormodel can be used, but not
> RGB colours.
>
> Can I produce postscript graphs in R that satisfy this?

Unfortunately not directly: the graphics driver only uses RGB.

However, if the plot only contains 'black and white', it probably actually 
only contains black, indicated by '0 0 0 rgb' (as white is normally 
transparent).  Edit that to '0 setgray'.  If you do have any white, edit
'1 1 1 rgb' to '1 setgray'.

-- 
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