[R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Ronaldo Reis Junior
Hi, It is possible to use a shell command inside a R script? I'm write a R script and I like to put somes shell commands inside to R. Somethink like: convert fig01.png fig01.xpm or sed ..., etc. It is possible? How? Thanks Ronaldo -- Acalme-se, são somente 0's e 1's -- Prof. Ronaldo Reis

[R] Using sunflowerplot to add points in a xyplot panel

2007-08-14 Thread Ronaldo Reis Junior
Hi, I use panel.points to add points to a xyplot graphic. But I like to use the sunflowerplot to plot my points because this is very superimposed. It is possible to use this? I try but it dont work directly. It may be need to put this function inside a panel.??? Thanks Ronaldo -- Where

[R] setup trellis.device to color=F inside the xyplot function

2007-08-05 Thread Ronaldo Reis Junior
Hi, it is possible to setup trellis.device(color=F) inside teh function xyplot? I try to use xyplot(ocup~tempo| nitro+estacao,col=white,ylim=c(0,0.7),par.settings=list(color=F)) But dont work, the only way that work for me is call the function trellis.device(color=F) before the xyplot,

[R] Function to separate effect in AOV

2007-07-23 Thread Ronaldo Reis Junior
Hi, I have a dummy question. Suppose that I have two explanatory variable, T1 (A, B) and T2 (C, D) and one response variable. attach(dados) tapply(Y,list(T1,T2),mean) CD A 2.20 10.2 B 2.22 20.26667 In this case, A and B inside C have no difference, but have

Re: [R] anova on data means

2007-06-21 Thread Ronaldo Reis Junior
Em Quinta 21 Junho 2007 16:56, Thomas Miller escreveu: I am transitioning from SAS to R and am struggling with a relatively simple analysis. Have tried Venables and Ripley and other guides but can't find a solution. I have an experiment with 12 tanks. Each tank holds 10 fish. The 12 tanks

[R] How to comment out a piece of a R code in XEmacs+ESS

2007-06-16 Thread Ronaldo Reis Junior
Hi, When I using Xemacs+ESS to write a R code, I need to comment out a code line by line putting # It is possible to configure ESS to comment and uncomment a selected block of code. Thanks Ronaldo -- __ _ / `-' ) ,,, | | ()|||[:::e \__.-._) ''' unk -- Prof. Ronaldo

[R] JGR and big list of packages.

2007-06-12 Thread Ronaldo Reis Junior
Hi, I have all CRAN packages installed on my Linux. Now I have problems with JGR. When I make a plot and close a device, the device dont work anymore, I nedd to use before javaGD() and after plot(). When I try do close JGR and save a session, It return a erro and dont close. Look: Exception

Re: [R] Front end for R in Mac

2007-06-04 Thread Ronaldo Reis Junior
Em Segunda 04 Junho 2007 07:57, KK escreveu: Hello all. I just switched from Windows to Mac and I am trying to find a good front end for R in Mac that is relatively user friendly and works well. I have used RWinEdt for several years in Windows, and something similar to RWinEdt for Mac would

[R] JGR

2007-05-29 Thread Ronaldo Reis Junior
Hi, I dont find any site to make suggestions about JGR. It is possible to make a keyboard link do automatic attribution sign - like Emacs use Shift - Thanks Ronaldo -- The most exciting phrase to hear in science, the one that heralds new discoveries, is not Eureka! (I found it!) but That's

[R] Making links in per-session dir

2007-05-21 Thread Ronaldo Reis Junior
Hi, When I use help.start() R spends some time to make links in per-session dir. I have a hole R system installed. It is possible to make these links permanent to avoid spend this time in help.start()? Thanks Ronaldo -- There can be no twisted thought without a twisted molecule.

[R] more simplified output from glht object

2007-05-21 Thread Ronaldo Reis Junior
Hi, I use glht to make multcomp, using Tukey, from a glm model. It is possible to get a more simplified output of result? Somethink like ordering by letters. Thanks Ronaldo -- Human kind cannot bear very much reality. -- T. S. Eliot, Four Quartets: Burnt Norton -- Prof.

Re: [R] more simplified output from glht object

2007-05-21 Thread Ronaldo Reis Junior
Em Segunda 21 Maio 2007 08:14, Ronaldo Reis Junior escreveu: Hi, I use glht to make multcomp, using Tukey, from a glm model. It is possible to get a more simplified output of result? Somethink like ordering by letters. Thanks Ronaldo I try to use multcompLetters, but dont work Look mc

Re: [R] Making links in per-session dir

2007-05-21 Thread Ronaldo Reis Junior
Em Segunda 21 Maio 2007 08:31, Prof Brian Ripley escreveu: The short answer is no. When you say you have the 'hole R system installed', what did you mean? This is not slow if you have all of R installed, but it might be if you have all of CRAN installed. But how do you know that is where

[R] xyplot source file only work with echo=TRUE

2007-04-24 Thread Ronaldo Reis Junior
Hi, I write several xyplot graphics on a source file. When I try to use source(graphics.R) the source don't work, but if I use source(graphics.R,echo=T) it work. Generally some commands work without echo=T, but xyplot dont work. Why it dont work without echo=T? It is possible to write a

[R] help on xyplot and curves

2007-04-23 Thread Ronaldo Reis Junior
Hi, I need to add some different curves to a each panel in a xyplot. I have a old function to make this using panel.number, like this: panel=function(x,y,panel.number,...){ panel.xyplot(x,y,...) if(panel.number==1){

Re: [R] help on xyplot and curves

2007-04-23 Thread Ronaldo Reis Junior
Em Segunda 23 Abril 2007 10:38, Gabor Grothendieck escreveu: See: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/90294.html Thanks, it work. Inte Ronaldo -- As pequenas dívidas são aborrecidas como as moscas. As grandes, logicamente, deveriam ser terríveis como os leões, e são

[R] some caracter dont work with JGR

2007-02-23 Thread Ronaldo Reis Junior
Hi, I testing JGR and I like, but my ~ caracter dont work. My keyboard is Brazilian ABNT2. The key is OK, only in JGR it dont work. Anybody have any idea about this? Thanks Ronaldo -- Mais variado que baldeação em Cacequi. -- Prof. Ronaldo Reis Júnior | .''`. UNIMONTES/Depto. Biologia

Re: [R] problem with weights on lmer function

2007-02-23 Thread Ronaldo Reis Junior
Em Quinta 22 Fevereiro 2007 20:36, Andrew Robinson escreveu: Hi Ronaldo, I suggest that you send us a small, well-documented, code example that we can reproduce. It certainly looks as though there is a problem, but given this information it's hard to know what it is! Cheers Andrew

[R] problem with weights on lmer function

2007-02-22 Thread Ronaldo Reis Junior
Hi, I try to make a model using lmer, but the weigths is not accept. m1-lmer(ocup/total~tempo+(tempo|estacao),family=binomial,weights=total) Erro em lmer(ocup/total ~ tempo + (tempo | estacao), family = binomial, : object `weights' of incorrect type I dont understand why this error,

[R] JGR launcher for linux

2007-02-22 Thread Ronaldo Reis Junior
Hi, anybody have a JGR launcher for linux? Maybe a script that launch JGR directly without open R then library(JGR) and JGR(). Thanks Ronaldo -- Deflector shields just came on, Captain. -- Prof. Ronaldo Reis Júnior | .''`. UNIMONTES/Depto. Biologia Geral/Lab. Ecologia Evolutiva | : :' :

[R] Problem with rjava in linux

2007-02-21 Thread Ronaldo Reis Junior
Hi, I install rJava in linux. The installation, from source, is ok. But I have this error on load package. library(rJava) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/usr/local/lib/R/site-library/rJava/libs/rJava.so': libjvm.so: cannot

Re: [R] Problem with rjava in linux Ignore

2007-02-21 Thread Ronaldo Reis Junior
Ignore my message, Now it work. Thanks and sorry. Ronaldo -- Nunca tente ensinar um porco cantar. Voce perde seu tempo e ainda chateia o porco! -- Prof. Ronaldo Reis Júnior | .''`. UNIMONTES/Depto. Biologia Geral/Lab. Ecologia Evolutiva | : :' : Campus Universitário Prof. Darcy Ribeiro,

[R] problem with survreg and anova function

2007-02-02 Thread Ronaldo Reis Junior
Hi, I make a weibull survival regression using suvreg function. Bu when I try to get the P values from anova, it give me NAs: I'm using R version 2.4.0 Patched (2006-11-25 r39997) and survival 2.30 library Look: m - survreg(Surv(tempo,censor)~grupo*peso) anova(m) Df Deviance

[R] add points to a 1-weibull graph

2007-01-15 Thread Ronaldo Reis Junior
Hi, I made a survival analysis using survreg function. Its OK. But, I need to show in the graph 1-weibull curves. Ploting weibull curve a add the estimated points following these steps: fit - survfit(Surv(Time,Censor)~Group) points(fit[1]) points(fit[2]) points(fit[3]) I have 3 groups. But

[R] problem with survreg and anova function

2006-11-06 Thread Prof. Ronaldo Reis Junior
Hi, I make a weibull survival regression using suvreg function. Bu when I try to get the P values from anova, it give me NAs: I'm using R 2.4.0 and survival 2.29 Look: m - survreg(Surv(tempo,censor)~grupo*peso) anova(m) Df Deviance Resid. Df-2*LL P(|Chi|) NULL NA