[R] pattern on bars?

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

>>>>> "MM" == Martin Maechler <maechler at stat.math.ethz.ch> writes:

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

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

    MM> Try the following example

    MM>    postscript("gray-bars.ps")

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

    MM>    dev.off() system("gv gray-bars.ps &")
			this should have been "gv -mono"
but if you really want to see how it prints, you have to print it  :-)

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