Re: [R] grob questions

2005-10-03 Thread mkondrin
Gabor Grothendieck wrote: If I run the following example from: http://www.stat.auckland.ac.nz/~paul/grid/doc/grobs.pdf grid.newpage() pushViewport(viewport(w = 0.5, h = 0.5)) myplot - gTree(name = myplot, children = gList(rectGrob(name = box, + gp = gpar(col = grey)), xaxisGrob(name =

Re: [R] Foreign function calls without 'PACKAGE' argument

2005-10-03 Thread mkondrin
Chin Chieh wrote: as title,when I check my own R package It appear the warning:Foreign function calls without 'PACKAGE' argument, I don't know what's wrongcan somebody help me ,thanks [[alternative HTML version deleted]] __

Re: [R] Passing character strings from C code to R

2005-07-15 Thread mkondrin
Tuszynski, Jaroslaw W. wrote: Hi, I have a C code which produces array of integers and potentially a string, and I have problems passing the string out. Here is the relevant part of the code: 1 PROTECT(Ret = allocVector(INTSXP, n)); 2 ret = (int*) INTEGER(Ret); /* get pointer to R's

Re: [R] Passing character strings from C code to R

2005-07-15 Thread mkondrin
If you want to install comment attribute on return value set it this way setAttrib(ans, R_CommentSymbol, charToSexp(Some comment)); __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] New RVTK package is available for download and testing.

2005-07-15 Thread mkondrin
Hello! I have just completed R-language binding for VTK library from Kitware. The library is used for 3D modelling and data visualization. RVTK allows you to do that sort of things in R-session. Because RVTK is in quite an alpha stage it is not yet on CRAN and can be downloaded from my homepage:

[R] finalize objects

2005-07-13 Thread mkondrin
Hello! How to set function for the whole R-class to be executed when the object is no more referenced from R and garbage collection takes place? I need the function to be applied for the whole class (let it be someRClass) like this someRClass.on.finalize-function(...){...}. I have found

[R] Fitting ARMA model with known inputs.

2005-06-01 Thread mkondrin
Hello! Is it possible to use R time series to identificate a process which is subjected to known input? I.e. I have 2 sequences - one is measurements of black box's state and the second is the force by which this black box is driven (which is known too) and I want to fit thist two series with

Re: [R] Fitting ARMA model with known inputs.

2005-06-01 Thread mkondrin
Thank you very much for clearing my question (for me too ;)) The model I would like to fit is : X_t = phi_1 * X_{t-1} + phi_2 * X_{t-2} + phi_3 * X_{t-3} + A_1*f_{t-1}+A_2*f_{t-2}...+A_k*f_{t-k} + E_t (*) (X_t and f_t time series are both known, k - fixed and more

Re: [R] grid and ps device (bg-color)

2005-05-03 Thread mkondrin
Hi! grid.rect(width=2, height=2, gp=gpar(fill=ps.options()$bg.color)) Yes, it works (more or less), but the best is to use grid.rect(width=unit(1,npc)+unit(0.5,inches),...) as postscript device leaves a 0.25-inch frame around the page. BTW wouldn't you fix a bug with the determination

[R] grid and ps device (bg-color)

2005-04-29 Thread mkondrin
Hello! Is it a bug or something? When I try to draw a grid-graphics on ps output background color is always transparent (with standard plot(...) this is not the case - the background is filled with ps.options()$bg color). What's wrong? Drawing a background grid.rect does not help - there is

Re: [R] Using tcltk language with R system

2003-11-13 Thread mkondrin
On Wed, Nov 12, 2003 at 04:41:21PM -0300, [EMAIL PROTECTED] wrote: Hello, Does anybody know how can i call a R function in a tcltk file? I made a tcltk file, but I need call functions in R. i.e: in R I can put .Tcl(tcltk statement). There are a same command to call R in a tcltk file?