[R] lty dots pdf issue

Roger Koenker rkoenker at uiuc.edu
Fri Feb 19 15:24:48 CET 2010


I'm trying to redo an old plot with:

>  sessionInfo()
R version 2.11.0 Under development (unstable) (2010-02-09 r51113) 
x86_64-apple-darwin9.8.0 

When I do:


pdf("lty.pdf",height = 6, width = 8)
u <- 1:100/100
y <- matrix(rep(1:10,each = 100),100)
matplot(u,y,lwd = 2,type ="l")
dev.off()

the line types that have dots are difficult to distinguish because the "dots"
that should appear are rendered as very thin vertical lines and it appears
that the dashes are rendered without the lend "round" feature even though
par() reports that that is the setting.  I'm viewing all this with Acrobat 9 pro,
but my printer produces something quite consistent with what is viewable
on the screen.  

Apologies in advance if this has an obvious resolution, I didn't see anything
in the r-help archive.

Roger


url:    www.econ.uiuc.edu/~roger            Roger Koenker
email    rkoenker at uiuc.edu            Department of Economics
vox:     217-333-4558                University of Illinois
fax:       217-244-6678                Urbana, IL 61801



More information about the R-help mailing list