Skip to content
Prev 6872 / 15075 Next

Sweave, lty = 3 line incorect in pdf output

Yes, indeed, I had mentioned before this thread had migrated to r-sig-mac

https://www.stat.math.ethz.ch/pipermail/r-help/2010-February/227847.html

that there is an interaction with the viewer, because I see
a line (though of the wrong width) for a hard copy and
display from imageMagick but no line at all
for Preview and the viewer of TeXShop.  This does not depend
on anti-aliasing being on or off.  I don't have Acroread
on this computer.  Perhaps it is a Leopard issue and I need
to upgrade to Snow Leopard.

The localization to pdf was because I had first noticed this
when using Sweave and Achim suggested trying it with
just the pdf function, which I did, and finding that the "viewed" pdf had
the same problems, on my Mac.

I have the screen resolution set at 1280 x 800 and just tried various
values but it has no effect on the appearance of the line.

Even for the situations in which I can see the line, the lwd argument
does not seem to be respected.  The only situation in which the
output is correct is drawing the graph to a quartz window and
saving it with the SaveAs option from the File menu.
In this case, the Preview viewer and all others display it correctly, too.
I would think that this would argue against it being just the viewer.

One more thing.  I just noticed that the version of the pdf()
generated file is 1.4 but of the version saved from the menu is 1.3.
The sizes differ, too,
71363 (saved from finder) vs 2964 (generated with pdf function),
but lowering the version number when calling pdf doesn't
change anything.

This still leaves the Mac 10.5 vs 10.6 hypothesis (which I cannot
test right away) an open possibility, unless someone has a better
suggestion.

Thank you.

Ken

Quoting Prof Brian Ripley <ripley at stats.ox.ac.uk>: