Re: [R] Plot bivariate joint pdf

2009-05-13 Thread beetle2
Hi All, Thankyou for your sugestions, I Look through some other posts and learnt about the persp() function. So I ended up using; x - seq(0, 1, len = 20) y - seq(0, 1, len = 20) model = function (x, y){ x+y} z=outer(x, y ,model); persp(x,y,z,theta=30,phi=30,ticktype=detailed) Worked a real

Re: [R] Plot bivariate joint pdf

2009-05-11 Thread Ben Bolker
beetle2 wrote: For a homework question. I was wondering if rcmdr has a function to plot a graph of a bivariate function of X and Y. I have a function with joint pdf fX,Y(x,y) = x+y for 0x1 , 0y1 I've tried x - seq(0,1,.001) y - seq(0,1,.001) r = x+y plot(r) but it seems to

[R] Plot bivariate joint pdf

2009-05-11 Thread beetle2
For a homework question. I was wondering if rcmdr has a function to plot a graph of a bivariate function of X and Y. I have a function with joint pdf fX,Y(x,y) = x+y for 0x1 , 0y1 I've tried x - seq(0,1,.001) y - seq(0,1,.001) r = x+y plot(r) but it seems to just add them together say

Re: [R] Plot bivariate joint pdf

2009-05-11 Thread David Winsemius
On May 11, 2009, at 9:46 AM, Ben Bolker wrote: beetle2 wrote: For a homework question. I was wondering if rcmdr has a function to plot a graph of a bivariate function of X and Y. I have a function with joint pdf fX,Y(x,y) = x+y for 0x1 , 0y1 I've tried x - seq(0,1,.001) y -

Re: [R] Plot bivariate joint pdf

2009-05-11 Thread beetle2
Thank you for your suggestions. When you talked about the double itegral did you mean solve the pdf for 1 variable by \int \int_{0}^{1} X+y dydx x^2/2 + x/2 Where this is a function of one variable. Do I then plot this function ? regards David Winsemius wrote: On May 11, 2009, at