[R] Legend in the outer margin

2006-04-10 Thread Prasanna
Dear Rs I have a 3x3 multiple plot. I would like to have a overall legend in the outer right margin. From the help archive, I found that it can be done by setting par(xpd=NA). However, I couldn't find the correct values for x and y co-ordinates for the legend. Please find the code snippet below:

Re: [R] Legend in the outer margin

2006-04-10 Thread Uwe Ligges
Prasanna wrote: Dear Rs I have a 3x3 multiple plot. I would like to have a overall legend in the outer right margin. From the help archive, I found that it can be done by setting par(xpd=NA). However, I couldn't find the correct values for x and y co-ordinates for the legend. Please find

Re: [R] Legend in the outer margin

2006-04-10 Thread Dieter Menne
Uwe Ligges ligges at statistik.uni-dortmund.de writes: You get the user coordinates of the plotting region by par(usr) Now simply make the legend right of that plotting region, e.g. with x corrdinates at par(usr)[2] + epsilon and y coordinates at mean(par(usr)[3:4]) I always

Re: [R] Legend in the outer margin

2006-04-10 Thread Greg Snow
Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dieter Menne Sent: Monday, April 10, 2006 7:40 AM To: r-help@stat.math.ethz.ch Subject: Re: [R] Legend in the outer margin Uwe Ligges