[R] pictex driver and bargraph shading

Henrik Bengtsson hb at maths.lth.se
Fri Aug 3 02:22:13 CEST 2001


Which version of ghostscript are you using? Your ps2pdf is probably making
use of ghostscript. You can check the version with

  %gs -v

I don't remember by which version the pdf conversion was improved, but the
never versions (I have AFPL Ghostscript v 6.50) do a much better job. You
can always try the latest version by using the online ps2pdf converter at
http://www.ps2pdf.com.

When you say your trying to import postscript to LaTeX, I guess you mean
Encapsulated Postscript (eps). If not, you get eps files by adding the
'onefile = FALSE' argument to your postscript options. Example do (after you
made your plot):

  dev.print(postscript, "myfigure.eps", onefile = FALSE, horizontal = FALSE)

I don't know about 'pdftex'; I always use ps2pdf myself. A good reason for
using ps2pdf is the wonderful add-on to LaTeX called PSTricks with which you
easily create nice looking graphs etc. using LaTeX code. If you haven't seen
it, check it out. However it only works if you create postscript files so I
guess pdftex won't work. For PSTricks links and examples see
http://www.maths.lth.se/matstat/staff/hb/softhelp/.

Henrik Bengtsson
Lund University
Sweden

> -----Original Message-----
> From: owner-r-help at stat.math.ethz.ch
> [mailto:owner-r-help at stat.math.ethz.ch]On Behalf Of Jain, Rahul (Rahul)
> Sent: Thursday, August 02, 2001 11:51 AM
> To: 'r-help at lists.r-project.org'
> Subject: [R] pictex driver and bargraph shading
>
>
> I'm trying to use the pictex driver for bargraphs, and the shading isn't
> showing up. Is there any way to get some sort of shading in the plots? A
> hatch or stipple would be fine, too; just some way to differentiate the
> bars.
>
> The postscript driver won't do, since I'm trying to embed this in a LaTeX
> document which I'll use pdflatex on and \includegraphics for
> pdftex doesn't
> support postscript. ps2pdf just rasterizes the ps, so it looks terrible.
>
> I'm willing to do this another way, I just don't want to use rasterized
> plots in my document.
>
> Thanks,
> --
> Rahul Jain
> rjain2 at lucent.com
> 908-559-6024
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-
> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._

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