[R] Legend positioning in scaled survival plot

2005-03-17 Thread Rachel Pearce
I am sorry that this is another novice question. I am having trouble using legend with the survival curve plot from the survival package, and I wonder if it is because I have rescaled my plot. Here is the relevant segment of code: plot(survfit(Surv(OS,Status)~shortishcr1),main='Overall

Re: [R] Legend positioning in scaled survival plot

2005-03-17 Thread Uwe Ligges
Rachel Pearce wrote: I am sorry that this is another novice question. I am having trouble using legend with the survival curve plot from the survival package, and I wonder if it is because I have rescaled my plot. Here is the relevant segment of code:

[R] Legend Line Size

2005-03-14 Thread McGehee, Robert
Hello all, When I view or print the below plot on my Linux machine under R 2.0.1 I see a nice thick solid and dashed line with a legend. However, while the lines are distinguishable, the legend is not. That is, the short (solid) line next to line1 and the short (dashed) line next to line2 seem to

Re: [R] Legend Line Size

2005-03-14 Thread Marc Schwartz
On Mon, 2005-03-14 at 15:55 -0500, McGehee, Robert wrote: Hello all, When I view or print the below plot on my Linux machine under R 2.0.1 I see a nice thick solid and dashed line with a legend. However, while the lines are distinguishable, the legend is not. That is, the short (solid) line

[R] Legend

2004-11-19 Thread Losier, Randy J
I have recently converted from S-Plus (Dec Alpha) to R (Mandrake 10.0). The differences are subtle but in some cases not easily converted. My Splus Command plotting deck was over 1200 lines and R has simplified this down to 900 lines so far. I do a lot of mapping with polygons and I am trying to

Re: [R] Legend help needed

2004-11-15 Thread Adaikalavan Ramasamy
You have not called legend() in your codes below, so we do not know what your problem is. See other comments below. On Mon, 2004-11-15 at 01:08, Sean David Richards wrote: R : Version 1.9.1 Hi, Am having trouble adding a legend to scatterplot. R code is shown below. I have tried various

Re: [R] Legend help needed

2004-11-15 Thread Adaikalavan Ramasamy
Sorry typo. The last line should read legend(1500, 9000, legend=paste(Data from, sfiles), pch=1:n, col=1:n ) ^^^ On Mon, 2004-11-15 at 11:39, Adaikalavan Ramasamy wrote: You have not called legend() in your codes below, so we do

Re: [R] Legend help needed

2004-11-15 Thread Sean David Richards
On 15 Nov 2004 at 12:11, Adaikalavan Ramasamy wrote: Have you considered points() or lines() here ? You could simplify to plot(0,1000, type=n, xlim=c(0,1500), ylim=c(1000,9000), xlab=Area above Notch (mm), main=Size Effect Speciments) n - length(sfiles) for (i in 1:n) {

[R] Legend help needed

2004-11-14 Thread Sean David Richards
R : Version 1.9.1 Hi, Am having trouble adding a legend to scatterplot. R code is shown below. I have tried various incantations to add a legend (using the legend() function) to the resulting plot but without any success. Looks like it should be simple but I must be missing something. Any

Re: [R] Legend placement in barplot?

2004-11-04 Thread Dan Bolser
On Wed, 3 Nov 2004, Marc Schwartz wrote: On Wed, 2004-11-03 at 09:55, Dan Bolser wrote: This has been asked before, but all the answers are hidiously complex. The legend.text=TRUE option of barplot is almost exactly what I need, except I need a legend.placement='tl' (top left)

Re: [R] Legend placement in barplot?

2004-11-04 Thread Dan Bolser
On Wed, 3 Nov 2004, Gabor Grothendieck wrote: Dan Bolser dmb at mrc-dunn.cam.ac.uk writes: : : This has been asked before, but all the answers are hidiously complex. : : The : : legend.text=TRUE : : option of barplot is almost exactly what I need, except I need a : : legend.placement='tl'

Re: [R] Legend placement in barplot?

2004-11-04 Thread F Z
) I hope that this helps Francisco From: Gabor Grothendieck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [R] Legend placement in barplot? Date: Wed, 3 Nov 2004 18:48:48 + (UTC) Dan Bolser dmb at mrc-dunn.cam.ac.uk writes: : : This has been asked before, but all the answers are hidiously

Re: [R] Legend placement in barplot?

2004-11-04 Thread Dan Bolser
their is a way to code this, but I don't want to write code - at least not code that I have to look at when what I want to see is my data. From: Gabor Grothendieck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [R] Legend placement in barplot? Date: Wed, 3 Nov 2004 18:48:48 + (UTC) Dan Bolser dmb

[R] Legend placement in barplot?

2004-11-03 Thread Dan Bolser
This has been asked before, but all the answers are hidiously complex. The legend.text=TRUE option of barplot is almost exactly what I need, except I need a legend.placement='tl' (top left) option. This option would be in contrast to the default placement which we could call 'tr' (top

Re: [R] Legend placement in barplot?

2004-11-03 Thread Marc Schwartz
On Wed, 2004-11-03 at 09:55, Dan Bolser wrote: This has been asked before, but all the answers are hidiously complex. The legend.text=TRUE option of barplot is almost exactly what I need, except I need a legend.placement='tl' (top left) option. This option would be in contrast to

Re: [R] Legend placement in barplot?

2004-11-03 Thread Gabor Grothendieck
Dan Bolser dmb at mrc-dunn.cam.ac.uk writes: : : This has been asked before, but all the answers are hidiously complex. : : The : : legend.text=TRUE : : option of barplot is almost exactly what I need, except I need a : : legend.placement='tl' : : (top left) option. This option would be in

Re: [R] Legend placement in barplot?

2004-11-03 Thread Gabor Grothendieck
Dan Bolser dmb at mrc-dunn.cam.ac.uk writes: : : This has been asked before, but all the answers are hidiously complex. : : The : : legend.text=TRUE : : option of barplot is almost exactly what I need, except I need a : : legend.placement='tl' : : (top left) option. This option would be in

Re: [R] Legend/Substitute/Plotmath problem

2004-10-25 Thread Martin Maechler
Johannes == Johannes Graumann [EMAIL PROTECTED] on Sat, 23 Oct 2004 11:04:25 -0700 writes: Johannes == Johannes Graumann [EMAIL PROTECTED] on Sat, 23 Oct 2004 11:04:25 -0700 writes: Johannes Hello, Johannes I seem unable to construct a legend which contains Johannes a

Re: [R] Legend/Substitute/Plotmath problem

2004-10-25 Thread Uwe Ligges
Martin Maechler wrote: Johannes == Johannes Graumann [EMAIL PROTECTED] on Sat, 23 Oct 2004 11:04:25 -0700 writes: Johannes == Johannes Graumann [EMAIL PROTECTED] on Sat, 23 Oct 2004 11:04:25 -0700 writes: Johannes Hello, Johannes I seem unable to construct a legend which contains

Re: [R] Legend/Substitute/Plotmath problem

2004-10-25 Thread Johannes Graumann
Thank you so much ... works now ... sooo much to learn ... Joh On Mon, 25 Oct 2004 09:56:35 +0200 Martin Maechler [EMAIL PROTECTED] wrote: Johannes == Johannes Graumann [EMAIL PROTECTED] on Sat, 23 Oct 2004 11:04:25 -0700 writes: Johannes == Johannes Graumann [EMAIL PROTECTED]

[R] Legend/Substitute/Plotmath problem

2004-10-23 Thread Johannes Graumann
Hello, I seem unable to construct a legend which contains a substitution as well as math symbols. I'm trying to do the following: strain2 - YJG48 legend.txt - c( substitute( strain * %==% * YJG45, rpn10 * %Delta%,

[R] Legend with different sized symbols

2004-08-05 Thread J. Pedro Granadeiro
Dear list, I wonder if it is possible to produce a legend with symbols of different sizes using a single legend command. I managed to do so more or less like in this crude example, but there is probably a smarter and more practical way: set.seed(0) plot(rnorm(100), rnorm(100),

Re: [R] Legend with different sized symbols

2004-08-05 Thread Uwe Ligges
J. Pedro Granadeiro wrote: Dear list, I wonder if it is possible to produce a legend with symbols of different sizes using a single legend command. I managed to do so more or less like in this crude example, but there is probably a smarter and more practical way: set.seed(0) plot(rnorm(100),

[R] legend under plot region?

2004-07-30 Thread Jean Eid
I am trying to put legends underneath the plot (in the outer margins). Is there an easy way to do this. I have been tinkering with split..screen but I could not make it work. Thank in advance Jean __ [EMAIL PROTECTED] mailing list

Re: [R] legend under plot region?

2004-07-30 Thread partha_bagchi
] Sent by: [EMAIL PROTECTED] 07/30/2004 02:21 PM To: [EMAIL PROTECTED] cc: Subject:[R] legend under plot region? I am trying to put legends underneath the plot (in the outer margins). Is there an easy way to do this. I have been tinkering with split..screen

[R] legend

2004-06-23 Thread Perez Martin, Agustin
DeaR UseRs: I want to put a legend in my plot. In the first line of the legend I want to put a box filled but in the second one I would like to put a lty=2 Of course it must appear with different colors. Thanks. __ [EMAIL PROTECTED] mailing list

Re: [R] legend

2004-06-23 Thread Ko-Kang Kevin Wang
Hi, - Original Message - From: Perez Martin, Agustin [EMAIL PROTECTED] To: lista R help (E-mail) [EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 9:19 PM Subject: [R] legend DeaR UseRs: I want to put a legend in my plot. In the first line of the legend I want to put a box filled

Re: [R] legend

2004-06-23 Thread Jim Lemon
Perez Martin, Agustin wrote: DeaR UseRs: I want to put a legend in my plot. In the first line of the legend I want to put a box filled but in the second one I would like to put a lty=2 Of course it must appear with different colors. I think I wrote this function about a year ago for

[R] Legend outside the plotting region

2004-05-03 Thread Miha STAUT
Hello, How would I add a legend to the plot outside the plotting region? I tried different graphical parameters (fig, plt, usr and fig in combination with plt) in par() without success. Thanks in advance, Miha Staut __ [EMAIL PROTECTED] mailing list

RE: [R] Legend outside the plotting region

2004-05-03 Thread John Fox
Dear Miha, Try setting par(xpd=TRUE) or par(xpd=NA). I hope this helps, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miha STAUT Sent: Monday, May 03, 2004 4:15 PM To: [EMAIL PROTECTED] Subject: [R] Legend outside the plotting region

[R] Legend text -- discrepancy between X11 and postscript

2004-01-15 Thread Itay Furman
Hi, When I place a legend on a plot it looks exactly as I intended on the screen. However, almost always, when I export this to postscript file, the legend's text protrudes through the legend's frame (the latter being placed correctly). See the appended example code. I can send the EPS file as

Re: [R] Legend text -- discrepancy between X11 and postscript

2004-01-15 Thread Philipp Pagel
Hi! On Wed, Jan 14, 2004 at 11:08:44PM -0800, Itay Furman wrote: When I place a legend on a plot it looks exactly as I intended on the screen. However, almost always, when I export this to postscript file, the legend's text protrudes through the legend's frame (the latter being

Re: [R] Legend text -- discrepancy between X11 and postscript

2004-01-15 Thread Prof Brian Ripley
The short answer is not to copy the device, but to replot on the new device. That is the advice given in MASS, for example. When you copy a device, you replay the device list and hence the lines and text are placed at the positions calculated using the font metrics of the first device and not

[R] Legend position in barplots

2003-11-16 Thread Andreas Lackner
Hello! Is there a way to change the position of the legend created in a barplot from the right side of the plot to the left side or somewhere else? Thanks Dipl.-Kfm. Andreas Lackner Universität Göttingen Institut für Wirtschaftsinformatik, Abtl. I Prof. Dr. Jörg

Re: [R] Legend position in barplots

2003-11-16 Thread Marc Schwartz
On Sun, 2003-11-16 at 12:42, Andreas Lackner wrote: Hello! Is there a way to change the position of the legend created in a barplot from the right side of the plot to the left side or somewhere else? Thanks Yes...instead of specifying 'legend.text' in barplot, use the legend() function,

Re: [R] legend over-prints barplot bar

2003-10-30 Thread Marc Schwartz
On Wed, 2003-10-29 at 22:28, Paul Sorenson wrote: When I create a bar plot, the legend is obscuring the rightmost bar. I haven't found a setting that appears to affect the positioning of the legend - any tips re moving the legend would be most appreciated. paul sorenson Conceptually,

[R] legend over-prints barplot bar

2003-10-29 Thread Paul Sorenson
When I create a bar plot, the legend is obscuring the rightmost bar. I haven't found a setting that appears to affect the positioning of the legend - any tips re moving the legend would be most appreciated. paul sorenson __ [EMAIL PROTECTED] mailing

Fwd: Re: [R] legend() with option adj=1

2003-06-06 Thread Anna H. Pryor
a very simple example? It does not have to be fancy!! I have never worked with a package where the legend was not automatic. -- Forwarded Message -- Subject: Re: [R] legend() with option adj=1 Date: Wed, 21 May 2003 09:19:11 +0200 From: Uwe Ligges [EMAIL PROTECTED

Re: Fwd: Re: [R] legend() with option adj=1

2003-06-06 Thread Uwe Ligges
on right justified legend text. Uwe Ligges -- Forwarded Message -- Subject: Re: [R] legend() with option adj=1 Date: Wed, 21 May 2003 09:19:11 +0200 From: Uwe Ligges [EMAIL PROTECTED] To: Jerome Asselin [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Jerome Asselin wrote: Hi there, I want

Re: Fwd: Re: [R] legend() with option adj=1

2003-06-06 Thread Frank E Harrell Jr
a legend on and I can't figure out how to do it from the examples. Can you give a very simple example? It does not have to be fancy!! I have never worked with a package where the legend was not automatic. -- Forwarded Message -- Subject: Re: [R] legend() with option

Re: [R] Legend in plot: symbol for mean and standard deviation

2003-02-25 Thread Marco Kienzle
Dear list, I attached to this mail an eps file containing an example that illustrate the problem: the plot display dot+vertical lines while with the legend I am able only to display dot+horizontal line. Any help is appreciate, cheers, marco On Mon, 2003-02-24 at 17:51, Uwe Ligges wrote:

Re: [R] Legend in plot: symbol for mean and standard deviation

2003-02-25 Thread Anne York
PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [R] Legend in plot: symbol for mean and standard deviation Marco Kienzle wrote: Dear list, I am facing the following problem with the legend of a plot that display the mean and variance of a measurement y as a function of x, the mean being

[R] Legend in plot: symbol for mean and standard deviation

2003-02-24 Thread Marco Kienzle
Dear list, I am facing the following problem with the legend of a plot that display the mean and variance of a measurement y as a function of x, the mean being represented by a dot and the variance by a vertical line. My problem is that I am unable to display the symbol (dot + vertical line) in

Re: [R] Legend in plot: symbol for mean and standard deviation

2003-02-24 Thread Uwe Ligges
Marco Kienzle wrote: Dear list, I am facing the following problem with the legend of a plot that display the mean and variance of a measurement y as a function of x, the mean being represented by a dot and the variance by a vertical line. At least for me the latter does not appear to be

[R] legend

2003-02-12 Thread Wilkinson, Mark
I think I'm missing something tonight in the usage of 'legend': plot(0, type=n) legend(locator(1), month.abb[1:5], pch=15, col=1:5) gives me something similar to what I want. But legend(locator(1), month.abb[1:5], fill=T, col=1:5) gives me 5 black boxes. What am I doing wrong? Thank you,

Re: [R] legend

2003-02-12 Thread Hedderik van Rijn
legend(locator(1), month.abb[1:5], fill=T, col=1:5) gives me 5 black boxes. Try: legend(locator(1), month.abb[1:5], fill=1:5) What am I doing wrong? The T is interpreted as (equal to?) a 1, so you're requesting the boxes to be filled with color 1, which is black. - Hedderik.

<    1   2