Re: [R] rgl not plotting properly

2023-05-05 Thread Jiayue Wang
在 5/5/23 21:08, Duncan Murdoch 写道: On 05/05/2023 7:41 a.m., Jiayue Wang wrote: 在 5/5/23 19:15, Duncan Murdoch 写道: On 05/05/2023 6:48 a.m., Jiayue Wang wrote: Thanks Duncan. glxgears works at the terminal; tcltk::tktoplevel() outputs the following: $ID [1] ".1" $env attr(,"class") [1]

Re: [R] rgl not plotting properly

2023-05-05 Thread Duncan Murdoch
On 05/05/2023 7:41 a.m., Jiayue Wang wrote: 在 5/5/23 19:15, Duncan Murdoch 写道: On 05/05/2023 6:48 a.m., Jiayue Wang wrote: Thanks Duncan. glxgears works at the terminal; tcltk::tktoplevel() outputs the following: $ID [1] ".1" $env attr(,"class") [1] "tkwin" Jiayue But no window opens f

Re: [R] rgl not plotting properly

2023-05-05 Thread Jiayue Wang
在 5/5/23 19:15, Duncan Murdoch 写道: On 05/05/2023 6:48 a.m., Jiayue Wang wrote: Thanks Duncan. glxgears works at the terminal; tcltk::tktoplevel() outputs the following: $ID [1] ".1" $env attr(,"class") [1] "tkwin" Jiayue But no window opens for tcltk::tktoplevel()?  Sounds like R isn't

Re: [R] rgl not plotting properly

2023-05-05 Thread Duncan Murdoch
On 05/05/2023 6:48 a.m., Jiayue Wang wrote: Thanks Duncan. glxgears works at the terminal; tcltk::tktoplevel() outputs the following: $ID [1] ".1" $env attr(,"class") [1] "tkwin" Jiayue But no window opens for tcltk::tktoplevel()? Sounds like R isn't seeing your DISPLAY variable. Does S

Re: [R] rgl not plotting properly

2023-05-05 Thread Jiayue Wang
Thanks Duncan. glxgears works at the terminal; tcltk::tktoplevel() outputs the following: $ID [1] ".1" $env attr(,"class") [1] "tkwin" Jiayue 在 5/5/23 16:45, Duncan Murdoch 写道: On 05/05/2023 2:24 a.m., Jiayue Wang wrote: Hi I can't get rgl working. I installed rgl, loaded it, but it seem

Re: [R] rgl not plotting properly

2023-05-05 Thread Duncan Murdoch
On 05/05/2023 2:24 a.m., Jiayue Wang wrote: Hi I can't get rgl working. I installed rgl, loaded it, but it seems all plot3d codes have failed: remotes::install_github("dmurdoch/rgl") library(rgl) open3d() x <- sort(rnorm(1000)) y <- rnorm(1000) z <- rnorm(1000) + atan2(x, y) plot3d(x, y, z, col