StupidBeauty
Read times:1638Posted at:Tue Jun 26 04:45:27 2012
- no title specified

转载:R做空间三维图问题

在R中可使用rgl这个包来绘制三维图像,比R中自带的函数要好。

http://cos.name/cn/topic/12269

亮点:

广告语:rgl是您居家旅行画三维图形必备之良药。

fn = function(x, y) {
x^2 + y^2 - 10 * (cos(2 * pi * x) + cos(2 * pi * y)) + 20
}
a = 5
x = seq(-a, a, 0.05)
y = seq(-a, a, 0.05)
z = outer(x, y, fn)
persp(x, y, z)
library(rgl)
zorder = rank(z)
persp3d(x, y, z, col = rainbow(as.integer(max(zorder)))[zorder])


Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4