02.07.2013 Views

现代统计图形 - 科学网—博客

现代统计图形 - 科学网—博客

现代统计图形 - 科学网—博客

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

106 第五章 图库<br />

1 > # 放大火山高度,使立体效果更明显<br />

2 > z = 3 * volcano<br />

3 > x = 10 * (1:nrow(z))<br />

4 > y = 10 * (1:ncol(z))<br />

5 > par(mar = rep(0, 4))<br />

6 > persp(x, y, z, theta = 150, phi = 30, col = "green3",<br />

7 + scale = FALSE, ltheta = -120, shade = 0.75, border = NA,<br />

8 + box = FALSE)<br />

图 5.24: 新西兰Maunga Whau火山的三维透视图

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!