forked from bwlewis/rthreejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththreejs.R
41 lines (39 loc) · 1.36 KB
/
threejs.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#' Interactive 3D graphics including point clouds and globes using three.js and htmlwidgets.
#'
#' Interactive 3D graphics including point clouds and globes using three.js and htmlwidgets.
#'
#' @name threejs-package
#' @references
#' \url{http://threejs.org}
#' \url{http://www.html5rocks.com/en/tutorials/three/intro/}
#' @aliases threejs
#' @examples
#' \dontrun{
#' library("shiny")
#' runApp(system.file("examples/globe",package="threejs"))
#' runApp(system.file("examples/scatterplot",package="threejs"))
#'
#' # See also help for globe.js and scatterplot3.js
#' }
#'
#' @docType package
NULL
#' Shiny bindings for threejs widgets
#'
#' Output and render functions for using threejs widgets within Shiny
#' applications and interactive Rmd documents.
#'
#' @param outputId output variable to read from
#' @param width,height Must be a valid CSS unit (like \code{"100\%"},
#' \code{"400px"}, \code{"auto"}) or a number, which will be coerced to a
#' string and have \code{"px"} appended.
#' @param expr An expression that generates threejs graphics.
#' @param env The environment in which to evaluate \code{expr}.
#' @param quoted Is \code{expr} a quoted expression (with \code{quote()})? This
#' is useful if you want to save an expression in a variable.
#'
#' @importFrom htmlwidgets shinyWidgetOutput
#' @importFrom htmlwidgets shinyRenderWidget
#'
#' @name threejs-shiny
NULL