Many functions in R that draw lines use arguments supplied to lty to determine the line format.  Unfortunately, like so many things I don't seem to use this quite often enough to remember the possibilities.  So this post is mainly provided so that I can find it quickly in the future.

cheers



the code to generate this plot:

 library(viridis)  
 plot(0, 0, col = "white", ylim=c(.5,6.5),  
    ylab="lty",xaxt="n",xlab="",  
    main="types of lines possible with lty arguments")   
 for(i in 1:6){  
  abline(h=i,lty=i, lwd=2,col=viridis(10)[i])  
 }  

0

Add a comment

Great Blogs
Great Blogs
About Me
About Me
My Photo
I am broadly interested in the application and development of comparative methods to better understand genome evolution at all scales from nucleotides to chromosomes.
Subscribe
Subscribe
Loading
Dynamic Views theme. Powered by Blogger. Report Abuse.