[R] barplot2
Marwan Khawaja
marwan.khawaja at aub.edu.lb
Tue Apr 22 02:07:57 CEST 2003
I want to thank Mark Schwartz and Martin Meachler for their suggestions re
conversion to pdf.
Obviously, the problem was witht the conversion software used --
GhostScript/GSView solved it.
Thanks again Marwan
=======================
Marwan Khawaja marwan.khawaja at aub.edu.lb
Associate Professor & Director http://webfaculty.aub.edu.lb/~mk36
Center for Research on Population & Health
Faculty of Health Sciences Tel: +961 1 35 00 00 ext. 4668 (O)
American University of Beirut +961 1 35 00 00 ext. 4640 (O))
P.O.Box 11--0236, Riad El-Solh +961 1 35 00 00 ext. 2821 (H)
Beirut 1107 2020, Lebanon Fax: +961 1 74 44 70
-----Original Message-----
From: Marc Schwartz [mailto:mschwartz at medanalytics.com]
Sent: Wednesday, April 16, 2003 5:43 AM
To: 'Marwan Khawaja'; 'R'
Subject: RE: [R] barplot2
>-----Original Message-----
>From: r-help-bounces at stat.math.ethz.ch
>[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Marwan Khawaja
>Sent: Wednesday, April 16, 2003 11:41 AM
>To: R
>Subject: [R] barplot2
>
>
>Hello,
>I get a nice looking barplot using the barplot2 function in
>the gregmisc
>package:
>
> body2 <- barplot2(hh3, beside = TRUE,
> col = c("mistyrose", "lightcyan"),
> ....
> cex.names = 1.0, plot.ci = TRUE, ci.l = cil, ci.u = ciu,
> plot.grid = TRUE)
> box()
>
>However, obviously I lose the collors when converting from ps
>to a pdf (outside of R) but I get a single shaded pattern! Is
>it my choice of collors? Or the conversion software I am
>using? Any help would be appreciated. TIA Marwan
Marwan,
I don't have your full code, but I used barplot2() in R 1.6.2 under
WinXP Pro to generate a simple bar plot with two bars in the colors
that you have above. I can generate a .PS file and then convert it to
.PDF using GhostScript/GSView and default settings without problem.
The colors are properly retained.
Can you provide your full code so that I can exactly replicate your
plot and specify what program you are using to do the PS to PDF
conversion?
Regards,
Marc Schwartz
More information about the R-help
mailing list