[R] pattern on bars?

Martin Maechler maechler at stat.math.ethz.ch
Fri Aug 4 21:41:21 CEST 2000


>>>>> "s-luppescu" == s-luppescu  <s-luppescu at uchicago.edu> writes:

    s-luppescu> Colors are real nice, but the publication I'm preparing
    s-luppescu> these barplots for permits only black and white. The Splus
    s-luppescu> plot options ``dbangle'' (or plain ``angle'') and
    s-luppescu> ``density'' (as on p. 65 of MASS 1st ed.) don't seem to be
    s-luppescu> available in R.  Is there another way to do this?

Use a grayscale color palette.  If I remember right, R's grayscales are
quite well printed on a B/W printer (and if I remember properly, much
better than S-plus' grayscales).

Try the following example  

   postscript("gray-bars.ps")

   data(VADeaths, package = "base")
   barplot(VADeaths, col = gray(seq(0,.9, len=6)))

   dev.off()
   system("gv gray-bars.ps &")

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