Re: [R] Help with Plot/Legend

2009-01-13 Thread jimdare
Thanks Jim, What happens if I want one solid line and four custom lines ("92","11","12","62). I tried c("10","92","11","12","62) and it said that you can't use 0's. I also tried: ownlines<-c("92","11","12","62) lty=c(1,ownlines) which resulted in the same thing. jholtman wrote: > > You c

Re: [R] Help with Plot/Legend

2009-01-13 Thread jim holtman
You can create your own dashed lines: lty The line type. Line types can either be specified as an integer (0=blank, 1=solid (default), 2=dashed, 3=dotted, 4=dotdash, 5=longdash, 6=twodash) or as one of the character strings "blank", "solid", "dashed", "dotted", "dotdash", "longdash", or "twodash",

[R] Help with Plot/Legend

2009-01-13 Thread jimdare
Dear R-Users I have 2 questions: Firstly, If I create a matplot and legend for multiple vectors and then tag another vector on using matlines (e.g. a 'total' of all vectors), is there anyway to add the new line to the legend without recreating it? I have created the plot this way because I w