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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 2 Aug 2001, Jain, Rahul (Rahul) wrote:> 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 pictex driver has very limited support.> 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.What ps2pdf is that? It shouldn't in a recent ghostscript.> I'm willing to do this another way, I just don't want to use rasterized > plots in my document.What's wrong with using the pdf() driver if you want pdf? Alternatively, use the xfig() driver and some suitable back-end. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
[snip: pictex trouble]> 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.Upgrade to 1.3, and use the pdf driver. Jason -- Indigo Industrial Controls Ltd. 64-21-343-545 jasont at indigoindustrial.co.nz -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 -- Readhttp://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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> -----Original Message----- > From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] > Sent: Thursday, August 02, 2001 3:16 PM > To: Jain, Rahul (Rahul) > Cc: 'r-help at lists.r-project.org' > Subject: Re: [R] pictex driver and bargraph shading > > > On Thu, 2 Aug 2001, Jain, Rahul (Rahul) wrote: > > > 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. > > What ps2pdf is that? It shouldn't in a recent ghostscript.I figured out that the problem was that the font I chose wasn't a standard pdf font. Changing it to helvetica makes a beautiful .pdf :)> > I'm willing to do this another way, I just don't want to > use rasterized > > plots in my document. > > What's wrong with using the pdf() driver if you want pdf?I just realized that debian woody (testing) doesn't have a recent R, so I compiled the one in unstable, and after removing the test phase (many of the tests reported failure even though they actually succeeded). But the pdf driver makes a blank page...> Alternatively, use the xfig() driver and some suitable back-end. >-- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._