| look_at_origin | R Documentation |
Builds a 4x4 rotation matrix suitable for 'rgl::view3d(userMatrix = ...)' that orients the scene as if the camera is at 'eye' looking toward the origin with z pointing up.
look_at_origin(eye)
eye |
Numeric vector of length 3 (x, y, z) — camera position. |
A 4x4 rotation matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.