:我々が得る他の人と同じように時間x2
とやってあなたのscatterplot3d()
コンテナ内にネストされた関数を使用してそれを解析します。それは、そのようなコンテナ内の機能を持っていることは非常に奇妙な構文ですが、それは動作しますが、あなたにこのような何か(点線面を与えることの中央付近に見える
plot3d <- scatterplot3d(x, y, z, ...)
model <- lm(y ~ sqrt(c + x^2) + z)
plot3d$plane3d(model)
:それは次のようになります。キューブ):
![3-D scatterplot with plane through the center](https://i.stack.imgur.com/AxEww.jpg)
手動で一つまたは複数の面を作成したい場合、私は私が-掲示再ウーヴェの方法here使用します。
spd <- scatterplot3d(1:10, 1:10, 1:10)
# xy
spd$plane3d(0.3549896,0,0,lty="dotted")
# yz
x0 <- 5
xyz1 <- spd$xyz.convert(rep(x0, 6), rep(0, 6), seq(0, 10, by=2))
xyz2 <- spd$xyz.convert(rep(x0, 6), rep(10, 6), seq(0, 10, by=2))
segments(xyz1$x, xyz1$y, xyz2$x, xyz2$y, lty="dotted")
xyz1 <- spd$xyz.convert(rep(x0, 6), seq(0, 10, by=2), rep(0, 6))
xyz2 <- spd$xyz.convert(rep(x0, 6), seq(0, 10, by=2), rep(10, 6))
segments(xyz1$x, xyz1$y, xyz2$x, xyz2$y, lty="dotted")
# zx
y0 <- 6
xyz1 <- spd$xyz.convert(rep(0, 6), rep(y0, 6), seq(0, 10, by=2))
xyz2 <- spd$xyz.convert(rep(10, 6), rep(y0, 6), seq(0, 10, by=2))
segments(xyz1$x, xyz1$y, xyz2$x, xyz2$y, lty="dotted")
xyz1 <- spd$xyz.convert(seq(0, 10, by=2), rep(y0, 6), rep(0, 6))
xyz2 <- spd$xyz.convert(seq(0, 10, by=2), rep(y0, 6), rep(10, 6))
segments(xyz1$x, xyz1$y, xyz2$x, xyz2$y, lty="dotted")
を
これはマニュアル仕様による面生成:
![enter image description here](https://i.stack.imgur.com/WdgFg.png)
関連ではなく、重複:http://stackoverflow.com/q/6774777/636656 –