1
我想在R中繪製3D圖,其中y有固定點,x和z是向量。例如:用y作爲點繪製3d,x和z作爲R中的矢量?
x=[1,2,4,8,16,32,64]
y=0
z=[100,200,300,400,500,600,700]
x=[1,2,4,8,16,32,64]
y=1
z=[...] // 7 points
,並以此類推,直到Y = 10
我試圖用wireframe
其中y = 1,我總是有錯誤這樣的:
Error in eval(substitute(groups), data, environment(formula)) :
numeric 'envir' arg not of length one
任何人都可以幫助我獲得數據繪圖?
你應該得到一個錯誤,當您設置x和z,太。 'x = c(1,2,4,...)'。與z相同 –