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)")
This is the error I am getting
Error in scatterplot3d(x = all.loadings[top300], color = ("red"), pch = 20, : no data left within (x|y|z)lim
How can I resolve it?
I figured the code. It has a dimensional problem and I corrected it...Thanks y'all