[R] forcing graphs to all black ink

Prof Brian D Ripley ripley at stats.ox.ac.uk
Mon Jun 5 09:42:50 CEST 2000


On Mon, 5 Jun 2000, Mark Hall wrote:

> Is there an easy way, for MCLUST in particular, to force its graphical
> output to all black and not use colors to show the clusters/groups?
> It shows the groups quite nicely by using triangles, crosses, etc.
> Unfortunately, my printer doesn't convert reds and yellows too nicely
> and the result is a indistinct figure on the page.  (Yes, I have access
> to
> a color printer but my intended publication venue charges outrageous
> page fees for color plates... ).

You don't give us much to go on.  What device are you using?  The
simplest idea is probably to change all the colours to black before
plotting. 

palette(rep("black", 8))

should do that.  This is assuming that mclust uses number for colours,
which as it is converted from S-PLUS code is likely.

A quick look suggests the only places colours are set are in clpairs and
mixproj and you could just omit the col= in

  pairs(x, col=clrs, pch=symbols, labels=labels, ...)

  plot(data[, 1], data[, 2], col=partition, pch=partition, 
       xlab=labs[1], ylab=labs[2], xlim=xlim, ylim=ylim, ...) 


-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list