1

Web 表示用に WrtieWebGL 関数を使用して、rgl パッケージから plot3d 関数を使用して作成された 3D プロットをエクスポートしようとしています。WriteWebGL ドキュメントの例は一時ディレクトリに保存されるため、よくわかりません。誰かがこの関数の使用方法の例を提供したり、使用法に関する私のエラーを指摘したりできますか? お時間をいただき、ありがとうございました。

   attach(dataset1)       
   plot3d(Days_Prep_Time,ACT_Score,Coffee,size=5,col="blue", type="s")
   writeWebGL(dir = "webGL", filename = file.path(dir, "index.html"), 
   template = system.file(file.path("WebGL", "template.html"), package = "rgl",
   snapshot = TRUE, font = "Arial")

次のエラーが表示されます。

   Error in writeWebGL(dir = "webGL", filename = file.path(dir, "index.html"),  : 
   template ‘’ does not contain %WebGL%
   In addition: Warning message:
   In file(con, "r") :
   file("") only supports open = "w+" and open = "w+b": using the former
4

1 に答える 1