Re: [R] legend at fixed distance form the bottom

2008-12-08 Thread Greg Snow
] 801.408.8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] project.org] On Behalf Of Christophe Genolini Sent: Saturday, December 06, 2008 7:08 AM To: Greg Snow Cc: r-help@r-project.org Subject: Re: [R] legend at fixed distance form the bottom Thanks for your answer

Re: [R] legend at fixed distance form the bottom

2008-12-08 Thread Christophe Genolini
: Re: [R] legend at fixed distance form the bottom Thanks for your answer. Unfortunatly, I can not create the graphice with the final size since I am writing a package in wich the user will have to chose between several graphics, and then he will have to export one. And they might be one graph

Re: [R] legend at fixed distance form the bottom

2008-12-08 Thread Greg Snow
:[EMAIL PROTECTED] project.org] On Behalf Of Christophe Genolini Sent: Monday, December 08, 2008 11:28 AM To: Greg Snow Cc: r-help@r-project.org Subject: Re: [R] legend at fixed distance form the bottom Sorry, I will be more precise. Here is an example (simplified) of graph I want : 8

Re: [R] legend at fixed distance form the bottom

2008-12-08 Thread Christophe Genolini
PROTECTED] 801.408.8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] project.org] On Behalf Of Christophe Genolini Sent: Monday, December 08, 2008 11:28 AM To: Greg Snow Cc: r-help@r-project.org Subject: Re: [R] legend at fixed distance form the bottom Sorry, I

Re: [R] legend at fixed distance form the bottom

2008-12-06 Thread Christophe Genolini
PROTECTED] 801.408.8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] project.org] On Behalf Of Christophe Genolini Sent: Friday, December 05, 2008 6:40 AM To: r-help@r-project.org Subject: [R] legend at fixed distance form the bottom Hi the list I would like

Re: [R] legend at fixed distance form the bottom

2008-12-06 Thread Gabor Grothendieck
inset= is measured from the margin so the trick is to inset it relative to the top even if you want it at the bottom: legend(top, pch = unique(listSymboles), legend = c(ane, cheval, poney, mule), inset = c(0,1.1), horiz = TRUE, xpd = NA) On Fri, Dec 5, 2008 at 8:39 AM, Christophe Genolini

Re: [R] legend at fixed distance form the bottom

2008-12-06 Thread Christophe Genolini
Thanks to answering me Gabor I am not sur I understand : I had your line to my graph. Then I resize my graph but the legend is still moving. In inset = c(0,1.1), 1.1 means 110% of the y length of the plot region. So when the plot region change, the distance between the legend and the top axe

Re: [R] legend at fixed distance form the bottom

2008-12-06 Thread Gabor Grothendieck
I would like to add a legend under a graph but at a fixed distance from the graphe The top of the legend is always a fixed amount below the graph (which is what you asked for). __ R-help@r-project.org mailing list

Re: [R] legend at fixed distance form the bottom

2008-12-06 Thread Christophe Genolini
Lol. To me, a fixed amount that depends on the size of the graph is not much fixed... --- 8 --- symboles - c(3,4,5,6) dn - rbind(matrix(rnorm(20),,5),matrix(rnorm(20,2),,5)) listSymboles - rep(symboles,each=2) layout(matrix(c(1,1,1,2,2,3),3)) for(i in 1:3){ plot(dn) legend(top, pch =

Re: [R] legend at fixed distance form the bottom

2008-12-06 Thread Gabor Grothendieck
Its independent of the scale of the graph. On Sat, Dec 6, 2008 at 12:07 PM, Christophe Genolini [EMAIL PROTECTED] wrote: Lol. To me, a fixed amount that depends on the size of the graph is not much fixed... --- 8 --- symboles - c(3,4,5,6) dn -

[R] legend at fixed distance form the bottom

2008-12-05 Thread Christophe Genolini
Hi the list I would like to add a legend under a graph but at a fixed distance from the graphe. Is it possible ? More precisely, here is my code : --- 8 symboles - c(3,4,5,6) dn - rbind(matrix(rnorm(20),,5),matrix(rnorm(20,2),,5)) listSymboles - rep(symboles,each=2)

Re: [R] legend at fixed distance form the bottom

2008-12-05 Thread Greg Snow
] 801.408.8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] project.org] On Behalf Of Christophe Genolini Sent: Friday, December 05, 2008 6:40 AM To: r-help@r-project.org Subject: [R] legend at fixed distance form the bottom Hi the list I would like to add