Hadley,
It does appear that the problem has to do with "on stretches" of
linetypes of length = 1. They are all lost in the pdf processing on
the Mac. I have reviewed the documentation and have figured out how to
define a manual scale. However, I can't figure out how to get just a
solid line, in addition to the dot-dash lines. See below.
# This works
linetypes <- c("82", "21", "42", "44", "4424", "6363")
p1 + scale_linetype_manual(values = linetypes)
# However, the following linetypes definitions don't work
linetypes <- c(NULL, "11", "31", "33", "3313", "4242")
linetypes <- c(NA, "11", "31", "33", "3313", "4242")
linetypes <- c("00", "11", "31", "33", "3313", "4242")
p1 + scale_linetype_manual(values = linetypes)