Re: [R] Mixing lty specifications in legend

2007-11-07 Thread Duncan Murdoch
On 07/11/2007 7:01 PM, Peter Dunn wrote: > Hi all > > I have a plot with lines, one specified as (say) lty=1, > using standard line types, and another as (say) my > own spec: lty="51". > > I can't get legend to display both. Toy example: > > >> plot(1~1) >> legend("topright", lty=c("51",1),

[R] Mixing lty specifications in legend

2007-11-07 Thread Peter Dunn
Hi all I have a plot with lines, one specified as (say) lty=1, using standard line types, and another as (say) my own spec: lty="51". I can't get legend to display both. Toy example: > plot(1~1) > legend("topright", lty=c("51",1), legend=c("My own","Standard")) Error in segments(x1, y1, x2,