r threejs

Published by onesixx on

https://github.com/bwlewis/rthreejs/blob/master/README.md

– Three.js widgets for R and shiny
– This project is based on the htmlwidgets package.
  See https://github.com/ramnathv/htmlwidgets for details and links to amazingly cool visualization widgets for R.

Install

Platform과 상관없이 GitHub에서 직접 threejs를 설치하기 위해서는 devtools 팩키지를 사용하여 설치

if(!require("devtools")) install.packages("devtools")

devtools::install_github("bwlewis/rthreejs")

에러시: http://onesixx.com/error-github-peer-certificate-cannot-authenticated-given-ca-certificates/

Examples

간단예제1

추가적인 예제및 설명은 => ??scatterplot3d  . 

library(threejs)

z <- seq(-10, 10, 0.1)
x <- cos(z)
y <- sin(z)
scatterplot3js(x, y, z, color=rainbow(length(z)))

globe widget 예제

runApp(system.file("examples/globe", package="threejs"))

For detailed help on the widgets and additional examples, see

?scatterplot3js
?globejs

 

https://stackoverflow.com/questions/31327076/spinning-3d-scatterplots-inside-a-shiny-app

 

Categories: R-Shiny

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x