Hi,
It's easy to use custom linetypes but only in terms of spacing
specification, I believe (as in the rest of R graphics). See this
example,
library(maps)
states = map_data("state")
statenames = unique(states$region)
states <- subset(states, region %in% statenames[sample(1:length(statenames),5)])
ltys = c("22", "44", "13", "1343", "73", "2262", "12223242", "F282",
"F4448444", "224282F2", "F1")
qplot(long, lat, data = states, group = group,
linetype = factor(region), geom="path") +
scale_linetype_manual(values = ltys[1:5])
Making double lines and ladder-lines as you call them should be doable
if you superpose different geoms on top of each other, but it's
probably hard to automate. Try this for instance,
qplot(long, lat, data = states, group = group, geom="path",
linetype=I("solid"), size=I(2)) +
geom_path(size=1, colour="grey95") # match the background colour
HTH,
baptiste
--
_____________________________
Baptiste Auguié
School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK
http://newton.ex.ac.uk/research/emag
______________________________