There are 6 line types defined for plots in R defined as "dashed", "longdash" ... Link
How can I define more types if I have more that 6 series to plot ? The graph lines can be distinguished based on colour in the soft copy but is not suitable for black and white printing.
Are there more options available or do I need to define them based on combining lines and points as in the reference link?
plot(x, type = "b", pch = 0, lty = "dotted")
Some google search suggested that patterns of on/off can also be specified with strings of 2, 4, 6, or 8 characters (non-zero hexadecimal characters, 1–9 and a–f) and the pre-set styles are “dashed” = “44", “dotted” = “13”, “dotdash” = “1343”, “longdash” = “73”, “twodash” = “2262”.
But seems it will be a lot of hit and trial to use this to define new line types which will be distinguishable on B&W printing.
Edit :
If points and line styles are combined, how can I define the set of line types in such a way that they can be input as
plot(DF, ..., col = 1:ncol(DF), lty = 1:ncol(DF))
# where DF is the set of data to be plotted.
Thanks a lot.
See Question&Answers more detail:os