[R] About the statistics for ratio comparison

2011-10-28 Thread Meng Wu
Hi I have a table with four columns and 3 rows. I calculated the average for each columns as average (A), average (B), average (C) and average (D), then calculate the relative ratio as average (A)/average (B), and average (C)/average (D). I would like to know how can I calculate the significance b

[R] Help with 2-D plot of k-mean clustering analysis

2011-05-18 Thread Meng Wu
Hi, all I would like to use R to perform k-means clustering on my data which included 33 samples measured with ~1000 variables. I have already used kmeans package for this analysis, and showed that there are 4 clusters in my data. However, it's really difficult to plot this cluster in 2-D format

[R] About the breakpoint when making heatmap with lots of variables

2010-05-19 Thread Meng Wu
HI,All I am trying to create a heatmap with 24 samples with 15672 varibles, I read in the table in R, and then made it as a matrix, then try to create the heatmap using heatmap(x,...) However, I received the error message as: > heatmap(t(x)) Error: cannot allocate vector of size 936.8 Mb R(2925,0

[R] Help with heatmap

2010-05-17 Thread Meng Wu
HI, I am trying to create a heatmap with 24 samples with 15672 varibles, I read in the table in R, and then made it as a matrix, then try to create the heatmap using heatmap(x,...) However, I received the error message as: > heatmap(t(x)) Error: cannot allocate vector of size 936.8 Mb R(2925,0xa0

[R] Help with multiple output

2010-03-18 Thread Meng Wu
I am trying pairwise t-test with thousands of genes in different sample group so I am trying some code like: for (i in 1:length(GENE)){ array[i]<-pairwise.t.test(AGE6TTEST[[GENE[i]]],Lable,p.adj="fdr") } I want to put the output in an array list, then I can check them, but seems I have the pro