[R] How to get all the data in a specific column from a dataframe?

2006-02-03 Thread Vincent Deng
Dear R-helpers: Suppose I have a datafram called test_frame like this col1 col2 col3 col4 r1 xxx x r2 xxx x r3 xxx x ..xxx x rn xxx x I know I can get data of col3 by using

[R] packages about microarray analysis

2006-01-19 Thread Vincent Deng
Dear R-helpers, Can anybody suggest me some common packages for standard microarray analysis, either from CRAN or Bioconductor? Many thanks... [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

[R] Question about plotting a hclust tree

2006-01-10 Thread Vincent Deng
Dear R-helpers, While plotting a hclust tree, is it possible to mark group information on it? Suppose I have a hclust tree ClusTree, and I use cutree to cut the tree into different groups as following a=cutree(ClusTree,h=10) How do I mark the grouping info stored in a while I plot ClusTree?

[R] How to plot legend to the margin area of the graph?

2006-01-09 Thread Vincent Deng
Dear R-helpers, When plotting a graph, what command should I use to mark legend to the margin area of that graph? __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] Questions about cbind

2006-01-03 Thread Vincent Deng
Dear R-helpers I have a stupid question about cbind function. Suppose I have a dataframe like this Frame: A 10 C 20 B 40 and a numeric matrix like this Matrix: A 1 B 2 C 3 cbind(Frame[,2],Matrix[,1]) simply binds these two columns without checking the order, I mean, the result will be A 10 1 B

[R] Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG

2005-12-30 Thread Vincent Deng
Hi, I got this error while using png() function in RedHat 9.0. Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG It looks like the system lacks some library for graphics. Can anyone tell me which rpm I should install to have png() function work with

[R] Which cluster function can be used to cluster a correlaiton matrix?

2005-12-28 Thread Vincent Deng
Hi, I'd got a matrix of correaltion values. Which cluster method can I use to cluster it? Best Regards... __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] How to plot curves with more than 8 colors

2005-12-27 Thread Vincent Deng
of abc color codes repeatedly to draw the diagram Any helps? Best Regards... On 12/27/05, Uwe Ligges [EMAIL PROTECTED] wrote: Vincent Deng wrote: Hi, I'm a new hand in R language. I have about 20 groups of data[x,y] and want to plot them on a graph. To do this, I write a for-loop

Re: [R] How to plot curves with more than 8 colors

2005-12-27 Thread Vincent Deng
be identified clearly? Thanks again and again ... On 12/27/05, Uwe Ligges [EMAIL PROTECTED] wrote: Vincent Deng wrote: Dear Uwe, Sorry, I did not describe my question clearly. I created a matrix to store color code using rgb function. abc = rgb(6:36,0,0,maxColorValue = 255

[R] How to plot curves with more than 8 colors

2005-12-26 Thread Vincent Deng
Hi, I'm a new hand in R language. I have about 20 groups of data[x,y] and want to plot them on a graph. To do this, I write a for-loop as following: (some codes are omitted for simplicity) for (i in c(1:20)) { points(...,...,col=i) lines(...,col=i) } The problem is R only plot them with 8