Created
October 18, 2013 16:45
-
-
Save neomatrix369/7044309 to your computer and use it in GitHub Desktop.
An advance 3D mesh - R Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > x <- seq(0,10,length=250); | |
| > y <- x <- seq(-3,3, length=50); | |
| > f <- function(x,y) { return (dnorm(x) * dnorm(y))}; | |
| > z <- outer(x,y,f); | |
| > par(bg = "white"); | |
| > persp(x,y,z,zlim=c(0,0.25), theta=50, phi=10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment