Re: [R] Add different types of legend: line and points

2011-02-10 Thread Shiguo Jiang
Thank you Duncan. It works. It seems that NA is of great use. Shiguo On Thu, Feb 10, 2011 at 5:25 PM, Duncan Murdoch wrote: > On 11-02-10 3:56 PM, Shiguo Jiang wrote: > >> Hello, >> >> I plot box plot, and add a point to the box indicating mean. I also add >> some >> range to the box width. I wa

Re: [R] Add different types of legend: line and points

2011-02-10 Thread Duncan Murdoch
On 11-02-10 3:56 PM, Shiguo Jiang wrote: Hello, I plot box plot, and add a point to the box indicating mean. I also add some range to the box width. I want to add legend for both the range (line) and mean (point). However, I cannot add line legend and point legend together. The code looks like t

[R] Add different types of legend: line and points

2011-02-10 Thread Shiguo Jiang
Hello, I plot box plot, and add a point to the box indicating mean. I also add some range to the box width. I want to add legend for both the range (line) and mean (point). However, I cannot add line legend and point legend together. The code looks like the following. (1) First, I tried the follo