[R] heatmap color specification

2007-02-09 Thread Xiaohui
because the rect shift from the original map. Could any one tell me how to fill the cells on the map with corresponding values? Or can we get the actual coordinates of the image excluding the dendregram. Any help would be appreciated. Thanks in advance! Xiaohui

[R] Heatmap color specification

2007-02-09 Thread Xiaohui
the rect shift from the original map. Could any one tell me how to fill the cells on the map with corresponding values? Or can we get the actual coordinates of the image excluding the dendregram. Any help would be appreciated. Thanks in advance! Xiaohui

Re: [R] heatmap color specification

2007-02-12 Thread Xiaohui
Jim Lemon wrote: Xiaohui wrote: ... Then, I did a heatmap for 'test' matrix. But for now, I want to specify each of the cell in the heatmap according to the values of the corresponding matrix elements of test. Let's say: col-c(red,yellow,green) for test[1,1], the color on the map should

Re: [R] mixture of 2 normals - starting values

2007-02-22 Thread Xiaohui
Hi, Try MCLUST package. You can use the hierarchical clustering to find the starting values of your EM. Xiaohui [EMAIL PROTECTED] wrote: Hi, I have a problem of estimating a mixture of two normal distributions. I need to find the starting points automatically, since this is a part

Re: [R] Extracting a subset from a dataframe

2007-02-22 Thread Xiaohui
Try: D1[setdiff(D1$dates,D2$dates) , ] Xiaohui [EMAIL PROTECTED] wrote: Good day everyone, Can anyone suggest an effective method to solve the following problem: I have 2 dataframes D1 and D2 as follows: D1: dates ws wc pwc 2005-10-19:12:00 10.8 80 81 2005-10-20

Re: [R] Passing command line parameters to a script

2007-03-06 Thread Xiaohui
Does system(command -arguments) works for you? Xiaohui akintayo holder wrote: Hi, Does any one know if it is possible to create an R script that can use command line parameters. I can execute an R script from the command line, but I cannot figure out how to pass parameters to the script

Re: [R] how to ignore error messages?

2007-06-11 Thread Xiaohui
see ?try Jianping Jin wrote: Dear group: I wrote a code to iterate a non-linear fit with a set of data. The entire process didn't implemented to the end because an error message, singular gradient. I knew that some sub-sets (columns) do not fit my formula well and may result in

Re: [R] determining the column index and grabbing only variables with a certain string in them

2007-06-26 Thread Xiaohui
1. which(Exat Name == names(Data) ## Assuming Data is your data.frame 2. grep(Variable, names(Data)) Xiaohui Dimitri Liakhovitski wrote: Hello! I have a data set with almost 2,000 variables (called 'Data'). I want to select only a set of variables that have a certain string in them (e.g