[R] Set of well distinguishable line types?

Jim Lemon jim at bitwrit.com.au
Mon Apr 28 13:49:49 CEST 2008


Werner Wernersen wrote:
> Hi,
> 
> I am plotting several lines into one plot and would
> like them to be distinguishable in print later on as
> well. Thus, my question is: Is there a larger set of
> such line types available like the sets available for
> colors?
> 
> Maybe somebody has already put in the work to define
> some additional good looking and distinguishable line
> types.
> 
Hi Werner,
If you look at lty, there is an option for defining broken line types by 
strings of up to 8 hexadecimal digits, e.g.

abline(h=1,lty="28f8")

gives a line like the "centerline" used in mechanical drawing.

Jim



More information about the R-help mailing list