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
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:
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
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
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
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
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
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 : 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
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)
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'
)
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
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
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
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
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
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
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
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
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]
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%,
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),
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),
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
]
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
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
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
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
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
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
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
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
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
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
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,
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,
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
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
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
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
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:
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
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
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
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,
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.
101 - 146 of 146 matches
Mail list logo