Re: [R] How to control height of abline

2008-06-17 Thread mogra

Thanks


Dimitris Rizopoulos wrote:
 
 check this:
 
 x - rnorm(200)
 dd - density(x)
 plot(dd)
 ind - seq(100, 400, len = 6)
 arrows(dd$x[ind], 0, dd$x[ind], dd$y[ind] - 0.015, length = 0.2)
 
 
 I hope it helps.
 
 Best,
 Dimitris
 
 
 Dimitris Rizopoulos
 Biostatistical Centre
 School of Public Health
 Catholic University of Leuven
 
 Address: Kapucijnenvoer 35, Leuven, Belgium
 Tel: +32/(0)16/336899
 Fax: +32/(0)16/337015
 Web: http://med.kuleuven.be/biostat/
   http://www.student.kuleuven.be/~m0390867/dimitris.htm
 
 
 Quoting mogra [EMAIL PROTECTED]:
 

 I use plot to get the density curve and then I use

 abline(v=g$V2, col = 3 )  to get the vertical line for specific point on
 x
 axis.

 Goal : I want very small lines at the bottom on the x axis , if possible
 in
 the arrow forms instead of vertical lines on the whole graph.

 Thanks a lot.
 --
 View this message in context:   
 http://www.nabble.com/How-to-control-height-of-abline-tp17932528p17932528.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


 
 
 
 Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
 
 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-control-height-of-abline-tp17932528p17953763.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Randomizing one column in the dataMatrix

2007-12-06 Thread mogra

I have huge data file, and I would like randomize just one column at a time ,
is there any easy way?

Thanks a lot.
-- 
View this message in context: 
http://www.nabble.com/Randomizing-one-column-in-the-dataMatrix-tf4957535.html#a14197423
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] t.test : extracting Error

2007-11-21 Thread mogra

Hi Thanks for the reply.

I implemented your solution to my problem but ...

For some of my column there is not enough data to do t-test so it gives me
error and stops the for loop, is any graceful way to check for error msg and
say ok if there is no $p.value continue to the next column

Once again thx for help.



sata pinal wrote:
 
 I have two matrix with same dimensions. I want to do t.test using each
 column from 2 different matrix.  
 Row n Column names in both matrix are same. 
  
 e.g.  
 Matrix1   
 id VC1 VC2 VC3   
 R 1 2 3
 R1 4 5 6
 R3 7 8 9   
  
  
 Matrix2
 id VC1 VC2 VC3 
 R 10 11 12 
 R1 13 14 15 
 R3 16 17 18 
  
 want to do t.test using each column (with same name ) using Matrix1 and
 Matrix2
  
 for eg t.test(Matrix1$VC1, Matrix2$VC1)$p.value 
  
 What is the best way to do it. I have dataset with 4000 columns for each
 matrix with same row and column names. 
  
 Thanks a lot.

 -
 Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try
 it now.
   [[alternative HTML version deleted]]
 
 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.
 
 

-- 
View this message in context: 
http://www.nabble.com/Reg-%3A-%09using-two-different-matrix-%3A-how-to-do-t.test-tf4834072.html#a13845405
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] using two different matrix : how to do t.test

2007-11-19 Thread mogra

I have two matrix with same dimensions. I want to do t.test using each column
from 2 different matrix. 
Column names in both matrix are same.

e.g. 
Matrix1 
id  VC1 VC2 VC3 
R   1   2   3   
R1  4   5   6   
R3  7   8   9   


Matrix2 
id  VC1 VC2 VC3
R   10  11  12
R1  13  14  15
R3  16  17  18

want to do t.test

for eg t.test(Matrix1$VC1, Matrix2$VC1)$p.value

What is the best way to do it. I have dataset with 4000 columns for each
matrix with same row and column names.

Thanks a lot.
-- 
View this message in context: 
http://www.nabble.com/using-two-different-matrix-%3A-how-to-do-t.test-tf4833943.html#a13829333
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.