Skip to content

Instantly share code, notes, and snippets.

@neomatrix369
Created October 18, 2013 16:45
Show Gist options
  • Select an option

  • Save neomatrix369/7044309 to your computer and use it in GitHub Desktop.

Select an option

Save neomatrix369/7044309 to your computer and use it in GitHub Desktop.
An advance 3D mesh - R Script
> 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