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:
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
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
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