[R] Plotting math functions

2003-07-24 Thread Jonck van der Kogel
Hi all, I was wondering whether it is possible to plot math functions, for example sin, cos or a Gaussian type function, in R, and if so, how to do it. I have been searching through the archives and the R manual but had no luck in finding any hints on how to go about this. Any help is much

[R] GeneSOM viewer

2003-06-26 Thread Jonck van der Kogel
Hi all, Recently I have written a small application, SOMviewer, that is able to graphically display a self organizing map produced with the som algorithm found in the GeneSOM package, clustered by any hierarchical clustering method that produces a merge matrix (agnes, diana, hclust etc..).

[R] Macintosh plots

2003-06-18 Thread Jonck van der Kogel
Hi Ian, Not 100% sure on this, but I've recently been wrestling with producing plots in R and I think I know the answer to your question. As far as I could tell, all the parameters for graphics are stored using par(). There is a parameter $bg, which for me is set to transparent, but I'll bet

[R] Clustering quality measure

2003-06-17 Thread Jonck van der Kogel
Hi all, I am running a series of experiments where after manipulating my data I run several clustering algorithms (agnes, diana and a clustering method of my own) on the data. I wanted to determine which clustering method did the best job, so therefore I had defined my own quality measure

Re: [R] more efficient sum of matrix columns

2003-06-15 Thread Jonck van der Kogel
Hi, Maybe I'm not understanding you correctly, but wouldn't the following be the fastest way to compute the sum of a column: x - matrix(c(1:4462), nrow=4462, ncol=1) #setting up a column of 4462 elements to be able to make a comparison sum(x[,1]) [1] 9956953 system.time(sum(x[,1])) [1] 0 0 0

[R] Missing data augmentation

2003-06-14 Thread Jonck van der Kogel
Hi all, A short while ago I asked a question about multiple imputation and I got several helpful replies, thanks! I have untill now tried to use the packages mice and norm but both give me errors however. mice does not even run to start with and gives me the following error right away: iter

[R] Multiple imputation

2003-06-12 Thread Jonck van der Kogel
Hi all, I'm currently working with a dataset that has quite a few missing values and after some investigation I figured that multiple imputation is probably the best solution to handle the missing data in my case. I found several references to functions in S-Plus that perform multiple

[R] Multiple match function?

2003-06-10 Thread Jonck van der Kogel
Hi all, I have (yet another) question about a function in R. What I would like to do is test for the presence of a certain value in a vector, and have the positions that this value is at returned to me. For example, let's say I have a vector: x - c(1,1,2,2,3,3,4,4) Now I would like a function

[R] Appending elements to an array

2003-06-09 Thread Jonck van der Kogel
Hi all, I am having a bit of trouble with the array structure of R. What I want to do is dynamically add/remove elements to an array. For example: Let's say I have created an array: myArray - array(c(3,8), dim=c(1,2)) myArray [,1] [,2] [1,]38 And I now want to, for example, push