Re: [R] specify size of box around legend

2016-03-14 Thread Rainer M Krug
un...@r-project.org] On Behalf Of Jim Lemon > Sent: Saturday, March 12, 2016 9:34 PM > To: Rainer M Krug; r-help mailing list > Subject: Re: [R] specify size of box around legend > > Hi Rainer, > You can use the text.width argument and override the calculated legend > text width

Re: [R] specify size of box around legend

2016-03-14 Thread David L Carlson
avid L Carlson Sent: Monday, March 14, 2016 9:14 AM To: Jim Lemon; Rainer M Krug; r-help mailing list Subject: Re: [R] specify size of box around legend Also you can specify the upper left/lower right coordinates of the legend box: # Get the default positions/sizes plot(1, 1) a <- legend(x="to

Re: [R] specify size of box around legend

2016-03-14 Thread David L Carlson
hropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jim Lemon Sent: Saturday, March 12, 2016 9:34 PM To: Rainer M Krug; r-help mailing list Subject: Re: [R] specify size of box around legend H

Re: [R] specify size of box around legend

2016-03-12 Thread Jim Lemon
Hi Rainer, You can use the text.width argument and override the calculated legend text widths. Jim On Sat, Mar 12, 2016 at 1:01 AM, Rainer M Krug wrote: > Hi > > assume the following code: > > --8<---cut here---start->8--- > plot(1,1) > legend(x="topleft", le

Re: [R] specify size of box around legend

2016-03-12 Thread Duncan Mackay
ssage- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rainer M Krug Sent: Saturday, 12 March 2016 01:02 To: r-help@r-project.org Subject: [R] specify size of box around legend Hi assume the following code: --8<---cut here---start->8-

Re: [R] specify size of box around legend

2016-03-11 Thread Duncan Murdoch
On 11/03/2016 9:50 AM, Rainer M Krug wrote: Duncan Murdoch writes: > On 11/03/2016 9:01 AM, Rainer M Krug wrote: >> Hi >> >> assume the following code: >> >> --8<---cut here---start->8--- >> plot(1,1) >> legend(x="topleft", legend = LETTERS[1:10], title = "L

Re: [R] specify size of box around legend

2016-03-11 Thread Rainer M Krug
Duncan Murdoch writes: > On 11/03/2016 9:01 AM, Rainer M Krug wrote: >> Hi >> >> assume the following code: >> >> --8<---cut here---start->8--- >> plot(1,1) >> legend(x="topleft", legend = LETTERS[1:10], title = "L 1") >> legend(x="bottomleft", legend = paste(L

Re: [R] specify size of box around legend

2016-03-11 Thread Duncan Murdoch
On 11/03/2016 9:01 AM, Rainer M Krug wrote: Hi assume the following code: --8<---cut here---start->8--- plot(1,1) legend(x="topleft", legend = LETTERS[1:10], title = "L 1") legend(x="bottomleft", legend = paste(LETTERS[1:10], letters[1:12],LETTERS[1:10]), tit

[R] specify size of box around legend

2016-03-11 Thread Rainer M Krug
Hi assume the following code: --8<---cut here---start->8--- plot(1,1) legend(x="topleft", legend = LETTERS[1:10], title = "L 1") legend(x="bottomleft", legend = paste(LETTERS[1:10], letters[1:12],LETTERS[1:10]), title = "L 2") legend(x="topright", legend = LET