Description Usage Arguments Source See Also Examples
A basic 3D scatterplot using d3.js and x3dom.
1 2 3 |
x |
A data matrix with three columns corresponding to the x,y,z coordinate axes. Column labels, if present, are used as axis labels. |
height |
The container div height. |
width |
The container div width. |
tick.marks |
Set FALSE to disable display of tick marks. |
num.ticks |
A three-element vector with the suggested number of ticks to display per axis. |
color |
Either a single valid RGB, hex or named color name, or
a vector of valid color names of length |
size |
The plot point radius, either as a single number or a
vector of sizes of length |
grid |
Set FALSE to disable display of a grid. |
Harry Voorhees: http://bl.ocks.org/hlvoorhees/5986172.
scatterplot3d, rgl
1 2 3 4 5 6 7 8 | ## dontrun
# A stand-alone example
set.seed(1)
x <- matrix(rnorm(100*3),ncol=3)
scatterplotx3(x)
# A shiny example
runApp(system.file("examples/shiny",package="x3dom"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.