[R] persp() problem

2007-09-10 Thread Economics Guy
I am having some trouble getting the persp() package to change the x and y axis on a 3d plot. It defaults to the [0,1] interval and when I try to change it I get errors. Example: This works: D - c(1,2,3,4,5,6,7,8,9,10) M - c(11,12,13,14,15,16,17,18,19,20) DM - cbind(D,M) persp(DM,

[R] persp() problem

2006-12-13 Thread Michael Sun
Dear list, I have a problem on persp() x - u1data #first coloum in attached data y - u2data #second coloum in attached data f - function(x,y){qgev(pnorm(rhoF*qnorm(pnorm((qnorm(y)-rho2*qnorm(x)/sqrt(1-rho2^2 +sqrt(1-rhoF^2)*qnorm(0.95)),-0.3935119, 0.4227890, 0.2701648)}

Re: [R] persp() problem

2006-12-13 Thread Duncan Murdoch
On 12/13/2006 6:19 AM, Michael Sun wrote: Dear list, I have a problem on persp() x - u1data #first coloum in attached data y - u2data #second coloum in attached data f - function(x,y){qgev(pnorm(rhoF*qnorm(pnorm((qnorm(y)-rho2*qnorm(x)/sqrt(1-rho2^2

Re: [R] persp() problem

2006-12-13 Thread Duncan Murdoch
On 12/13/2006 9:57 AM, Michael Sun wrote: Dear Duncan, Thank you very much for your quick reply. The comands below really worked testx - seq(min(u1data), max(u1data), len=100) testy - seq(min(u2data), max(u2data), len=100) And you are right, I do need my observed data. can trans3d plot