[R] plot(...,type='h') and the pdf driver don't play nice

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Mon Nov 18 22:14:42 CET 2002


Yes.  Try in postscript() too.  I just followed postscript, but
consciously that one had to specify the desired behaviour.

That's not the way to draw boxes ....

Sophisticated graphics interfaces have options for how lines end and join,
but S's (and hence R's) predates such things.  )But Windows' GDI does not,
as far as I know.)

On Mon, 18 Nov 2002, Dirk Eddelbuettel wrote:

>
> With R 1.6.1 on NT, if I do
>
>    plot(1:10, type='h', lwd=10)
>
> nice rectangular boxes emerge. But in the case of
>
>    pdf("foo.pdf"); plot(1:10, type='h', lwd=10); dev.off()
>
> the boxes have (IMHO at least) ugly rounded edges. Is that intentional?

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



More information about the R-help mailing list