0
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 内没有数据

我该如何解决?

4

1 回答 1

0
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)")




我想出了代码。它有一个尺寸问题,我纠正了它......谢谢大家

于 2021-04-19T01:34:53.327 回答