问题描述
library(scatterplot3d)
fmri.pr <- prcomp(fmri,scale=TRUE)
all.loadings=fmri.pr$rotation
loading.pc1=abs(all.loadings[,1]) # take absolute value
top300=sort(loading.pc1,decreasing=TRUE)[1:300]
scatterplot3d(x = all.loadings[top300],color= ("red"),pch=20,xlab="x",ylab="y",zlab="z",main="The most active voxels (Highest 300)")
这是我得到的错误
scatterplot3d 中的错误(x = all.loadings[top300],color = ("red"),pch = 20,: (x|y|z)lim 内没有数据了
我该如何解决?
解决方法
library(scatterplot3d)
#fmri.pr <- prcomp(fmri,scale=TRUE)
all.loadings=fmri.pr$rotation
loading.pc1=abs(all.loadings[,1]) # take absolute value
rank.top300=order(loading.pc1,decreasing=TRUE)[1:300]
scatterplot3d(x = col2coord[rank.top300,],color= ("red"),pch=20,xlab="x",ylab="y",zlab="z",main="The most extreme voxels (Highest 300)")
我想出了代码。它有一个尺寸问题,我更正了它...谢谢大家