Re: [R] Generating 3Dplot in lattice package

2016-05-02 Thread William Dunlap via R-help
For starters, use 'pmin' (parallel min) instead of 'min'. substitute(MIN(psi/K14,EXP(((ABS(H14)/peak)^omega)*LN(psi/K14))), list(MIN=quote(pmin), K14=quote(VaR), ABS=quote(abs), EXP=quote(exp), LN=quote(log), H14=quote(Bmax), omega=quote(w2))) # pmin(psi/VaR, exp(((abs(Bma

[R] Generating 3Dplot in lattice package

2016-05-02 Thread T.Riedle
Dear R users, I am trying to generate a 3D plot using the wireframe() function in the lattice package. The corresponding formula in Excel looks as follows and is applied to the wireframe() function: MIN(psi/K14,EXP(((ABS(H14)/peak)^omega)*LN(psi/K14))) I tried to "translate" this formula in R