RSSAmplifier

Some Random Remarks on seehuhn.de · Sep 17, 2012

3D graphics in R (updated)

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

For (my own) future reference, here are example commands to create a 3D (surface) plot in R: library("rgl") open3d(windowRect=c(50,50,800,800)) x <- seq(-10, 10, length=20) y <- seq(-10, 10, length=20) z <- outer(x,y, function(x,y) dnorm(x, 2, 3)*dnorm(y, 3, 7)) palette <- colorRampPalette(c("blue", "green", "yellow", "red")) col.table <- palette(256) col.ind <- cut(z, 256) persp3d(x, y, z,…

Read on seehuhn.de

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.