Re: [R] Stacked Bar

2007-08-21 Thread Deb Midya
Jim, Thanks for such a quick response. It works well. Is it possible to fill the bars with patterns and colours? Regards, Deb Jim Lemon <[EMAIL PROTECTED]> wrote: Deb Midya wrote: > Hi R Users! > > Thanks in advance. > > I am using R-2.5.1 on Windows XP

[R] Stacked Bar

2007-08-21 Thread Deb Midya
Hi R Users! Thanks in advance. I am using R-2.5.1 on Windows XP. I am trying to do a stacked bar plot, but could not get through the following problem. The code is given below. 1. How can I provide 15 different colors for each method with 15 Rows? 2. How can I put the legend in a

[R] Calling R function in C

2007-07-09 Thread Deb Midya
Hi R Users! Thanks in advance. I am using R-2.5.1 on Windows XP and I have installed all necessary tools such as perl and tools.exe. I am trying to use sample(1:100, 3, rep=F) in C. How can I use this R function in C? Once again thank you very much for your time. Reg

Re: [R] Calling C Code from R

2007-07-04 Thread Deb Midya
wrote: On Wed, Jul 04, 2007 at 04:39:18AM -0700, Deb Midya wrote: > Hi R Users, > > Thanks in advance. > > I am using R-2.5.1 on Windows XP. > > I am trying to call C code (testCX1.C) from R. testCX1.c calls another C code > (funcC1.c) and returning a value to testCX1.c

[R] Calling C Code from R

2007-07-04 Thread Deb Midya
Hi R Users, Thanks in advance. I am using R-2.5.1 on Windows XP. I am trying to call C code (testCX1.C) from R. testCX1.c calls another C code (funcC1.c) and returning a value to testCX1.c. I like to have this value in R. My steps are below: 1. R CMD SHLIB testCX1.c f

[R] Difference between two time series

2007-03-05 Thread Deb Midya
Hi R Users! Thanks in advance. I am using R 2.4.1 on windows XP. I have a series of (x[i,t], y[i,t]), say i = 1, 2, .., n and t = t1, t2, .., tT. The n is large in number. The series y[i,t] is constructed from x[i,t] using moving average of order o (say o = 30 days).

[R] Fwd: Re: Calling C code from R

2007-02-03 Thread Deb Midya
nment variable and, probably, restart your command line session. See chapter 5 of the manual "Writing R extensions" (installed in R_HOME/doc/manual) and these two links http://www.murdoch-sutherland.com/Rtools/ http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR/ Also, it would

[R] Calling C code from R

2007-02-01 Thread Deb Midya
Hi! Thanks in advance. I am using R-2.4.0 on Windows XP. I am trying to create dll file. My C code: /* useC1.c */ void useC(int *i) { i[6] = 100; } I have tried to create useC1.dll. C:\R-2.4.0\bin>R CMD SHLIB useC1.c 'perl' is not recognized as an in