Re: [R] ForestPlot or similar

2010-11-02 Thread Mestat
Thanks Matt, I am having a problem now to use this function. The function separately works fine. But the problem is that I am working with a simulation, so i placed the CREDPLOT function in my program and added the following commands according my data: #MY DATA, ESTIMATES, LOWER AND UPPER INTERVA

Re: [R] ForestPlot or similar

2010-10-30 Thread Mestat
Here is one example: I have three vectors (mean,lower interval, upper interval) mean<-c(2,4,6,8) l<-c(1,2,3,4) u<-c(4,8,12,16) How would I plot that if I want to use the FORESTPLOT function. I dont need to use the TABLETEXT option. I am working in something like this: tabletext<-c(NA,NA,NA,NA,NA)

[R] ForestPlot or similar

2010-10-30 Thread Mestat
Hi listers, I am trying to plot some confidence intervals. The function FORESTPLOT, would work, but I need something more simple. I dont need to define the text labels. Is there another function that I can plot some confidence intervals. Thanks in advance, Marcio -- View this message in context:

Re: [R] Size of the legend

2010-09-21 Thread Mestat
Hi Denis, Check it out my code... This is not my real data... I would like to manage the size of the legend... Set the legend smaller than it is, because on my real data, the legend is over the values... Thanks for the help... x<-runif(100) y<-runif(100) color<-c(rep(1,15),rep(2,20),rep(3,15),rep

[R] Size of the legend

2010-09-20 Thread Mestat
Hello, Which would be the command to change the size of the legend. I checked at the help and I found out something about TEXT.WIDTH, but I am not sure if is what I want. Any help! Thanks in advance, Marcio -- View this message in context: http://r.789695.n4.nabble.com/Size-of-the-legend-tp25476

Re: [R] If then else with command for

2010-09-14 Thread Mestat
Yep... Got that... I just changed my data name... It worked fine... Thanks... -- View this message in context: http://r.789695.n4.nabble.com/If-then-else-with-command-for-tp2539341p2539429.html Sent from the R help mailing list archive at Nabble.com.

[R] If then else with command for

2010-09-14 Thread Mestat
Hey listers, I am trying to do something simple... Check the program below... I would like to create a variable named COLOR according to the conditions that I stablished... But the problem is that it seems that my variable COLOR is checking just on sample, may be last in the loop... Certainly, I a

[R] Condition %in%

2010-09-13 Thread Mestat
Hi listers, If I would like to check if a variable contains certain value, I would write: if (10 %in% x) And If I would like to check the opposite, that 10 is not into x. How would be? Thanks in advance, Marcio -- View this message in context: http://r.789695.n4.nabble.com/Condition-in-tp2538110

Re: [R] Function Gini or Ineq

2010-09-03 Thread Mestat
Hi Peng, I did that i installed the package RELDIST, but nothing happened. R does not recognize this function. Still looking for the solution. Thanks, Marcio -- View this message in context: http://r.789695.n4.nabble.com/Function-Gini-or-Ineq-tp2525852p2525981.html Sent from the R help mailing l

Re: [R] Function Gini or Ineq

2010-09-03 Thread Mestat
Hi Dimitris, I have already seen your code in another post. But, I would like to weight my data. So, I wish I could use the following command: gini(x, weights=rep(1,length=length(x))) Thanks anyway and I am trying to understand your gini function in order to apply a weigth. Marcio -- View this

[R] Function Gini or Ineq

2010-09-03 Thread Mestat
Hi listers, Does it necessary to install any package in order to use the GINI or INEQ functions. If I use the following command the R tells me that didn't find the GINI function. x<-c(541, 1463, 2445, 3438, 4437, 5401, 6392, 8304, 11904, 22261) G<-gini(x) Thanks in advance, Marcio -- View this

[R] Ordering data by variable

2010-09-02 Thread Mestat
Hi listers, I could order a data that like this: x<-c(2,6,8,8,1) y<-c(1,6,3,5,4) o<-order(x) frame<-rbind(x,y)[,o] But, I would like to know if there is a way to order my data without setting up a data frame. I would like to keep independent vectors x and y. Any suggestions? Thanks in advance, Mar

[R] Scatterplot - Overlap Frequency

2010-08-12 Thread Mestat
Hi listers... I am working o a scatterplot where I would like to plot the variables according with another frequency variable. Another friend here proposed this code... x <- rnorm(10) y <- rnorm(10) ind <- c(1,0,1,0,1,0,1,1,0,0) plot(x, y, col = ind + 1, pch = 16) # 1 is black, 2 is red But in

[R] Graphic Dispersion - Colored Points

2010-08-11 Thread Mestat
Hey folks, I have a graphic of dispersion... I would like to color some specific points (x,y) according to another indicator variable, for example: x<-rnorm(5) y<-rnorm(5) ind<-(1,0,0,1,0) plot(x,y) Any suggestion, thanks... Marcio -- View this message in context: http://r.789695.n4.nabble.c

[R] Data manipulation search

2010-08-11 Thread Mestat
Hi listers, I made some search, but i didn`t find in the forum. I have a data set. I would like to make a search (conditon) on my data set. x<-c(1,2,3,4,5,6,7,8,9,10) count<-0 if (CONDITON){count<-1}else{count<-0} My CONDITION would be: is there number 5 in my data set? Thanks in advance, Marci

[R] read.table (trying one more time)

2010-02-25 Thread Mestat
Hey listers, I've posted this doubt other day... But I am still having a hard time... I have a MAC and I am not getting how to use the read.table command... At the bottom of the FINDER application I have the following path: Macintosh HD>Usuários>User>Marcio>UdeM>Travail Dirigé>Data>MU284 Populati

Re: [R] READ.TABLE for Mac

2010-02-17 Thread Mestat
Yes, I paste the wrong ERROR MESSAGE... Cause I was checking many options it the problem was about files with separate names... But the problem still persists... I am using the following code: file<-read.table("/Users/Márcio/UdeM/Travail Dirigé/Data/MU284 Population.txt",header=T,skip=24) And ge

Re: [R] R on MAC OS X

2010-02-16 Thread Mestat
Hi listers, I just got a MAC, so I am trying to use the command READ.TABLE but I am getting a error that is probably caused by the wrong path that I am using... The command is the following... file<-read.table("/Users/Márcio/UdeM/Travail Dirigé/Data/MU284 Population.txt",header=T,skip=24) And I