Re: [R] legend in R plot

2010-07-23 Thread li li
Thank you all for your kind reply and help. I changed the legend function as Mr. Peter Ehlers suggested and the plots look good. Thank you again. Hannah 2010/7/22 Peter Ehlers ehl...@ucalgary.ca On 2010-07-21 22:06, li li wrote: Hi all, I am have some difficulty

Re: [R] legend in R plot

2010-07-22 Thread Dennis Murphy
Hi: It would really help to have a reproducible example to see exactly what problems you're having, but here's a simple manufactured example to illustrate how to produce a basic legend. The plot below is one with three different 'y' variables against the same x. The x and y limits are made wide

Re: [R] legend in R plot

2010-07-22 Thread Peter Ehlers
On 2010-07-21 22:06, li li wrote: Hi all, I am have some difficulty with the legend function. I need to add a legend to describe the different line types in a plot. The legend box is small. It did not include sufficient length of each line type to help distinguish the differnt line types.

Re: [R] legend in R plot

2010-07-22 Thread Jim Lemon
On 07/22/2010 02:06 PM, li li wrote: Hi all, I am have some difficulty with the legend function. I need to add a legend to describe the different line types in a plot. The legend box is small. It did not include sufficient length of each line type to help distinguish the differnt line

Re: [R] legend in R plot

2010-07-22 Thread Jim Lemon
On 07/22/2010 09:39 PM, Jim Lemon wrote: On 07/22/2010 02:06 PM, li li wrote: Hi all, I am have some difficulty with the legend function. I need to add a legend to describe the different line types in a plot. The legend box is small. It did not include sufficient length of each line type to

Re: [R] legend in R plot

2010-07-22 Thread Carl Witthoft
It occurs to me that Hannah may simply be plotting to a plot window that is overall too small. Try setting the plot window to full-screen (or close to that), and then running your plot legend. Once the picture on the screen is the way you like it, save or copy (clipboard) to your format of

[R] legend in R plot

2010-07-21 Thread li li
Hi all, I am have some difficulty with the legend function. I need to add a legend to describe the different line types in a plot. The legend box is small. It did not include sufficient length of each line type to help distinguish the differnt line types. Is there a way to fix this. Thank