Skip to content
Back to formatted view

Raw Message

Message-ID: <kh8mjt42pa29hqf1f7f5467o210faf6gd3@4ax.com>
Date: 2001-06-28T12:30:15Z
From: Duncan Murdoch
Subject: Gray levels in plot
In-Reply-To: <Pine.GSO.3.95q.1010628105926.811B-100000@sun21.math.uni-hamburg.de>

On Thu, 28 Jun 2001 11:03:23 +0200 (MET DST), you wrote:

>Dear list,
>
>is there a way to set the gray levels in a scatterplot? I want to make
>some plots for a b/w journal and the dataset is so large that I need
>pch="." for all points. As I understand the command gray(), it generates
>colors from prespecified gray levels. Are these the gray levels which
>appear again if I plot with col=gray(level), save as postscript and print
>with a b/w printer? 

Yes, that's the best way to do it.  For other ways to specify colours,
see the ?par help topic.

>Or can the gray levels be given to plot directly somehow?

That does give gray levels to plot directly.

Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._