[R] plotting question

2006-10-31 Thread Leeds, Mark \(IED\)
i have the following code below and at the end there are some plotting statements. it actualy looks quite nice when you run it but there is just one strange thing happening that don't know how to fix. the three things being plotted are aggfxdata[,logbidask] which has its own set of times (

Re: [R] plotting question

2006-10-31 Thread Gabor Grothendieck
I think you will have to ensure that lt has the same set of times as the prior plot to do it that way. Since time(lt) is a subset of time(aggfxdata) it would be good enough to do this: par(new = TRUE) lt2 - merge(zoo(, time(aggfxdata)), lt) plot(lt2, type = l, lty = 2) On 10/31/06, Leeds, Mark

Re: [R] plotting question

2006-10-31 Thread Gavin Simpson
On Tue, 2006-10-31 at 12:08 -0500, Leeds, Mark (IED) wrote: i have the following code below and at the end there are some plotting statements. it actualy looks quite nice when you run it but there is just one strange thing happening that don't know how to fix. The problem you had, was that

Re: [R] plotting question

2006-10-31 Thread Gavin Simpson
On Tue, 2006-10-31 at 18:11 +, Gavin Simpson wrote: On Tue, 2006-10-31 at 12:08 -0500, Leeds, Mark (IED) wrote: i have the following code below and at the end there are some plotting statements. it actualy looks quite nice when you run it but there is just one strange thing happening

[R] plotting question

2006-10-31 Thread Leeds, Mark \(IED\)
i have the axis line of code below in a plotting command and it works nicely but it puts tick values at every 5 of lt and i would like a tick value at every value of lt. i read about pretty() but that sounded tricky so instead , since i want a tick mark at every value of lt ( it's discrete and

Re: [R] plotting question

2006-10-31 Thread Gavin Simpson
On Tue, 2006-10-31 at 16:52 -0500, Leeds, Mark (IED) wrote: i have the axis line of code below in a plotting command and it works nicely but it puts tick values at every 5 of lt and i would like a tick value at every value of lt. i read about pretty() but that sounded tricky so instead ,

[R] plotting question

2006-09-19 Thread Steve Friedman
Hello list, I am interested in plotting a series of barcharts (package lattice) with several metrics. Instead of calling barchart many times to call each parameter, is there an approach to calling several parameters at once? An alternative might be a barplot for a primary parameter and then

Re: [R] plotting question

2006-09-19 Thread Richard M. Heiberger
Is this what you have in mind? tmp - data.frame(id=1:10, y1=sample(10), y2=sample(10)) tmp2 - cbind(id=c(tmp$id, tmp$id), stack(tmp[,2:3])) barchart(values ~ id | ind, data=tmp2) If not, send an equally trivial example of what you want to the list and someone will send you an optimized set

Re: [R] plotting question

2005-12-05 Thread Ed Wang
Hi, Trying to print out two vectors of data in a plot. Both are actual time series but I've been unable to plot both in one graph. Some examples available use use matrix() or ts() as an intermediate way to build an object that can be plotted but I've had no luck. Can someone point me to an

Re: [R] plotting question

2005-12-05 Thread Berton Gunter
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Wang Sent: Monday, December 05, 2005 1:03 PM To: r-help@stat.math.ethz.ch Cc: [EMAIL PROTECTED] Subject: Re: [R] plotting question Hi, Trying to print out two vectors of data in a plot. Both are actual

Re: [R] plotting question

2005-12-05 Thread Ed Wang
PROTECTED] To: 'Ed Wang' [EMAIL PROTECTED], r-help@stat.math.ethz.ch Subject: RE: [R] plotting question Date: Mon, 5 Dec 2005 14:12:47 -0800 ?lines ?points An Introduction to R (and numerous other books on R) explains this. Have you read it? -- Bert Gunter Genentech Non-Clinical Statistics South San

Re: [R] plotting question

2005-12-05 Thread Gabor Grothendieck
@stat.math.ethz.ch Subject: RE: [R] plotting question Date: Mon, 5 Dec 2005 14:12:47 -0800 ?lines ?points An Introduction to R (and numerous other books on R) explains this. Have you read it? -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA The business of the statistician

Re: [R] plotting question

2005-12-05 Thread Kjetil Brinchmann Halvorsen
Gunter [EMAIL PROTECTED] To: 'Ed Wang' [EMAIL PROTECTED], r-help@stat.math.ethz.ch Subject: RE: [R] plotting question Date: Mon, 5 Dec 2005 14:12:47 -0800 ?lines ?points An Introduction to R (and numerous other books on R) explains this. Have you read it? -- Bert Gunter Genentech Non

Re: [R] plotting question

2005-12-05 Thread paul sorenson
@stat.math.ethz.ch Subject: RE: [R] plotting question Date: Mon, 5 Dec 2005 14:12:47 -0800 ?lines ?points An Introduction to R (and numerous other books on R) explains this. Have you read it? -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA The business of the statistician

[R] Plotting question

2004-02-05 Thread Erin Hodgess
Hi Felix: How about this: n1.Plot function(x,my=0,sigma=1) { f.x - dnorm(x,mean=my,sd=sigma) plot(x,f.x,type=l,xlim=c(-5,5)) return(f.x) } Hope this helps! Sincerely, Erin Hodgess mailto: [EMAIL PROTECTED] i have written this little function to draw different normal distributions: n.Plot -

[R] plotting question: filling area between two lines

2003-02-25 Thread Christof Bigler
Is there any way to fill the area within a plotted line and a horizontal line, e.g. in the following example: x - rnorm(100) plot(x,type=l) abline(h=0) Thanks for any help. Christof __ [EMAIL PROTECTED] mailing list

Re: [R] plotting question: filling area between two lines

2003-02-25 Thread Achim Zeileis
On Tuesday 25 February 2003 17:51, Christof Bigler wrote: Is there any way to fill the area within a plotted line and a horizontal line, e.g. in the following example: x - rnorm(100) plot(x,type=l) abline(h=0) You could do polygon(c(1, 1:100, 100), c(0, x, 0), col = grey) in the above

[R] Plotting Question

2003-01-16 Thread Coate, Bruce
For a clinical trial I am involved with, I would like a plot (for each subject) similar to the following which will indicate what drugs that subject was taking on each day during the study: Drug 1[---] [--] Drug 2[-] Drug

Re: [R] Plotting Question

2003-01-16 Thread Frank E Harrell Jr
You might investigate the event.chart function in the Hmisc library (see http://hesweb1.med.virginia.edu/biostat/s/Hmisc.html) On Thu, 16 Jan 2003 08:10:34 -0800 Coate, Bruce [EMAIL PROTECTED] wrote: For a clinical trial I am involved with, I would like a plot (for each subject) similar to