[R] Re: C code in R

2003-11-04 Thread ucgamdo
I strongly encourage you tho check this book: The basics of S and S-Plus / Andreas Krause, Melvin Olson It has a very detailed and easy to follow info on how to link C code with S (which is nearly identical to R). The R documentation is certainly very complete, but it is written for people that

[R] Re: win.metafiles in linux and R

2003-10-20 Thread ucgamdo
I posted a similar query some months ago. Some people answered stating that win.metafiles were not available for R in linux. However, I was suggested to use the package RSvgDevice, which allows transforming any graphic device into Scalable Vector Graphics format, this file can then be opened with

[R] fractal gallery

2003-10-10 Thread ucgamdo
Just in case anyone is curious, I have set up a small fractal gallery done exclusively with R: www.geocities.com/mariodosreis/Rfractals __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Re: Mandelbrot set and C code

2003-10-01 Thread ucgamdo
I decided to take on the 'proper' solution to calculate the Mandelbrot set in R, i.e. to do the raw calculations in C and then link that code with R. I thought it would be a hard task, but I was pleasantly surprised when I saw how easily was to write the bit of C code (I am not a C

Re: [R] 3D plotting in R

2003-09-19 Thread ucgamdo
For plotting 3D points, you might want to check the function 'cloud' in the 'lattice' package (some good examples in the help file), you can feed the 3 most important factors to the function and see a 3d rep of your data. A perhaps, a better 3D representation comes from the function 'sm.density'

Re: [R] Fractals in R and having fun! (and more persp and color)

2003-09-18 Thread ucgamdo
Hi Martin, Thanks a lot for pointing your function out to me. I tried it, and indeed it is very fast. I will have a close look at the asymmetry problem in my own code, although this sounds pretty bizarre to me, I mean, I realised that there was some asymmetry but I didn't really payed

[R] Persp and color (again)

2003-09-17 Thread ucgamdo
Hi guys, After all the discussion yesterday about persp and color, I decided to have a more closer look at demo(persp), and decided to write a function to generate 'topo-like' colours to plot perspectives (Thanks a lot to Uwe Ligges for his enlightning comments regarding the code in the demo).

[R] Fractals in R and having fun! (and more persp and color)

2003-09-17 Thread ucgamdo
Well, I started playing with fractals in R, and wrote a function to generate de Mandelbrot set, which might be of interest to some people ### # Mandelbrot set

Re: [R] Persp and color

2003-09-16 Thread ucgamdo
Hi, If you run the demo for persp (I have R 1.7), you will see that there is a good example of 'coluring' a volcano according to different heights, just try demo(persp) and check out the code. You probably will find it too complicated as I did, I was trying to do the same and honestly I

Re: [R] Persp and color

2003-09-16 Thread ucgamdo
is not well specified, not even on the examples (as I am aware of). Thanks, Mario. At 14:41 16/09/03 +0200, you wrote: ucgamdo == ucgamdo [EMAIL PROTECTED] on Tue, 16 Sep 2003 11:46:18 +0100 writes: ucgamdo Hi, If you run the demo for persp (I have R 1.7), ucgamdo you will see

[R] Unable to plot dataframes

2003-09-15 Thread ucgamdo
I moved recently from R in windows to R in linux, and have found out that I cannot plot data frames. I think is an error related to the X server, however, I haven't got the slighliest clue of what to do. To be more specific this is a typical example of what happens to me: x -

[R] Re: clustering polypeptide sequences

2003-09-08 Thread ucgamdo
Hi Peter, You didn't give a very specific example, but it seems to me that what you wish to do is not really complicated. I suppose you have created a table of sequences vs. say hyprophobicity, charge, etc..., something like... seq hydroph arom b0001 0.1047620.00 b0002

[R] Re: normal distribution in samples of soil organisms.

2003-09-03 Thread ucgamdo
Hi, You didn't specify the satistical model you are intereted in, I will suppose it is something like: #Organims ~ Landscape + Soil + Depth + Species I suppose you have a table of with something like... SpecLands SoilDepth #Organisms A 1 1 1 10 A 1

[R] Re: Plotting bivariate normal distributions.

2003-09-01 Thread ucgamdo
You'll find that it is a lot easier to do it in R: # lets first simulate a bivariate normal sample library(MASS) bivn - mvrnorm(1000, mu = c(0, 0), Sigma = matrix(c(1, .5, .5, 1), 2)) # now we do a kernel density estimate bivn.kde - kde2d(bivn[,1], bivn[,2], n = 50) # now plot your results

[R] Exporting R graphs

2003-08-26 Thread ucgamdo
Hi, I have been a happy user of R for windows for more than a year, however, recently, I started using linux as my operating system and now I have practically switched completely. Of course, I still use R with linux, however, certain nice features of R in windows seem to be missing or