Re: [R] Simple Problem: Plotting mathematical functions

2012-04-13 Thread R. A. Bilonick
On 04/12/2012 09:11 PM, David Winsemius wrote: On Apr 12, 2012, at 3:49 PM, Aye wrote: Okay, i got this far: f <- function(x) 0.25*x^2 + 6.47*x -32.6 g <- function(x) 0.99*x^2 -6*x -195 h <- function(x) 0.77*x^2 +14*x -495 j <- function(x) 0.001*x^2 + 65*x -785 k <- function(x) 0.9*x^2 -2*x -6

Re: [R] calculating distance between latitude and longitude

2012-01-28 Thread R. A. Bilonick
On 01/27/2012 07:40 AM, uday wrote: I have some satellite data which contains latitude and longitude information . > From this data I would like to calculate distance between first location (scalar latitude and longitude) and all other (vectors latitude and longitude) How I should solve this pr

Re: [R] Axes intercept

2010-06-30 Thread R. A. Bilonick
On Mon, 2010-06-28 at 10:48 -0400, Robert Baer wrote: > y=rnorm(100) > x=abs(y) > plot(x, y, axes=FALSE) > axis(1, pos=0) > axis(2) > box() It's nice to know that R tends to make nice graphics by default. But you can have R do not so great graphics (like Excel and other programs that make really

Re: [R] anyone know how to calculate chi square value from P value?

2009-05-11 Thread R. A. Bilonick
On Mon, 2009-05-11 at 12:36 -0700, Anyuan Guo wrote: > Dear all, > I have P value of a list of markers. Now I need the chi square value > with degrees of freedom 2. > I noticed there are several Chisquare functions (dchisq, pchisq, > qchisq, and rchisq), but it seems all are not for my pu