视觉系——R的做图很好很强大

| 评论(0)

r.jpg


library(lattice)
n<-50
tx<-matrix(seq(-pi,pi,len=2*n),2*n,n)
ty<-matrix(seq(-pi,pi,len=n)/2,2*n,n,byrow=T)
xx<-cos(tx)*cos(ty)
yy<-sin(tx)*cos(ty)
zz<-sin(ty)
zzz[,1:12*4]<-NA
wireframe(zzz~xx*yy,shade=TRUE,light.source=c(3,3,3))

发表评论

最新日记

林达----"近距离看美国"系列
  大概一年半前,我在百无聊赖中混迹于一…
【每天听首外文歌】fix you
Song:fix you Artist:…
伟大的辩题
标 题: 银联杯"厦门大学第三届研究生辩…