如何在R中绘出索引
在这个网站上有很多三维图形。比如说如何在R中绘出索引,r,plot,3d,plotly,R,Plot,3d,Plotly,在这个网站上有很多三维图形。比如说 library(plotly) fig <- plot_ly( x = c(0, 1, 2, 0), y = c(0, 0, 1, 2), z = c(0, 2, 0, 1), i = c(0, 0, 0, 1), j = c(1, 2, 3, 2), k = c(2, 3, 1, 3), facecolor = toRGB(viridisLite::viridis(4)) ) fig x、y和z向量: x = c(
library(plotly)
fig <- plot_ly(
x = c(0, 1, 2, 0),
y = c(0, 0, 1, 2),
z = c(0, 2, 0, 1),
i = c(0, 0, 0, 1),
j = c(1, 2, 3, 2),
k = c(2, 3, 1, 3),
facecolor = toRGB(viridisLite::viridis(4))
)
fig
x
、y
和z
向量:
x = c(0, 1, 2, 0),
y = c(0, 0, 1, 2),
z = c(0, 2, 0, 1),
i = c(0, 0, 0, 1),
j = c(1, 2, 3, 2),
k = c(2, 3, 1, 3)
表示四个点(0,0,0)
,(1,0,2)
,(2,1,0)
,(0,2,1)
。它们分别由0、1、2、3索引
i
,j
,k
向量:
x = c(0, 1, 2, 0),
y = c(0, 0, 1, 2),
z = c(0, 2, 0, 1),
i = c(0, 0, 0, 1),
j = c(1, 2, 3, 2),
k = c(2, 3, 1, 3)
表示四个三角形。第一个由(0,1,2)
表示。这意味着相应三角形的顶点是由0、1、2索引的点。第二个是三角形,(0,2,3)
,其顶点是由0,2,3索引的点。等等。有帮助吗?这是一本书。