[R] Runing R in a bash script

2007-04-17 Thread Ulrik Stervbo
Hello! I am having issues trying to plot to a ong (or jpg) when the R-code in a bash script is executed from cron. I can generate a pdf file, but when I try to write to a png, the file is created, but nothing is written. If I execute the bash script from my console, everything works file. Any

Re: [R] Runing R in a bash script

2007-04-17 Thread Ulrik Stervbo
() but uses bitmap(), which in turn uses postscript-to-png via ghostscript. BTW, personally I think PNGs generated via bitmap() look way better than the ones generated via png(). /Henrik On 4/17/07, Jeffrey Horner [EMAIL PROTECTED] wrote: Ulrik Stervbo wrote: Hello! I am having

[R] Exercises for 'Using R'

2006-11-11 Thread Ulrik Stervbo
Hello everyone, We have started a very small R study group here in Berlin, Germany. Since we're all relatively new to R we are using 'Using R for Introductory Statistics' by John Verzani (one used that at a course once). Is there anyone who have exercisers fitting for group discussions,

[R] Getting group size in a data frame

2006-10-19 Thread Ulrik Stervbo
Hi all, I have a data frame with some measured values of some animals. Sometimes the measurement failed, resulting in a NA for a measurement and sometimes the animal died, resulting in NA for all measurements. I have several groups of animals. How do I find the size of each group with only alive

[R] Question regarding analysis of normalised data

2006-10-11 Thread Ulrik Stervbo
Dear all, I want to see if the treatment of an animal with a specific compound has an effect on the expression of certain genes. Though my question is based in biology, it really is all about how to deal with the standard deviation in normalised data. I have three groups of animals; untreated,

Re: [R] Identifying peaks (or offsets) in a time series

2006-07-25 Thread Ulrik Stervbo
Could Petr Pikal's peaks function (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/33097.html) be of any use? Ulrik On 7/24/06, Tauber, Dr E. [EMAIL PROTECTED] wrote: Dear R-users, We are monitoring the activity of animals during a few days period. The data from each animal (crossing of

Re: [R] Fitting a distribution to peaks in histogram

2006-07-20 Thread Ulrik Stervbo
On 7/19/06, hadley wickham [EMAIL PROTECTED] wrote: Can you be a bit more excact? I a biologist and relatively new to R In that case, I would _strongly_ advise that you get advice from a local statistician. I am afraid that, by comparison, I am the local statistican. I am also the local

Re: [R] Fitting a distribution to peaks in histogram

2006-07-19 Thread Ulrik Stervbo
On 7/19/06, hadley wickham [EMAIL PROTECTED] wrote: I would like to fit a distribution to each of the peaks in a histogram, such as this: http://photos1.blogger.com/blogger/7029/2724/1600/DU145-Bax3-Bcl-xL.png As a first shot, I'd try fitting a mixture of gamma distributions (say 3),

[R] Fitting a distribution to peaks in histogram

2006-07-19 Thread Ulrik Stervbo
Hello list! I would like to fit a distribution to each of the peaks in a histogram, such as this: http://photos1.blogger.com/blogger/7029/2724/1600/DU145-Bax3-Bcl-xL.png . The peaks are identified using Petr Pikal peaks function ( http://finzi.psych.upenn.edu/R/Rhelp02a/archive/33097.html), but

[R] Find peaks in histograms / Analysis of cumulative frequency

2006-07-15 Thread Ulrik Stervbo
Hello all, I have some histograms of amount of DNA in some cells (DU145 cells overexpressing Bax and Bcl-xL for those who wish to know). The histograms show not only two peaks as expected, but three, indicating that some cells have more than normal amounts of DNA. I am interested in knowing how