scatterplotx3: scatterplotx3 x3dom 3D scatterplot example

Description Usage Arguments Source See Also Examples

Description

A basic 3D scatterplot using d3.js and x3dom.

Usage

1
2
3
scatterplotx3(x, height = NULL, width = NULL, axis = TRUE,
  tick.marks = TRUE, num.ticks = c(6, 6, 6), color = "steelblue",
  size = 0.15, grid = TRUE)

Arguments

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 nrow(x).

size

The plot point radius, either as a single number or a vector of sizes of length nrow(x).

grid

Set FALSE to disable display of a grid.

Source

Harry Voorhees: http://bl.ocks.org/hlvoorhees/5986172.

See Also

scatterplot3d, rgl

Examples

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"))

bwlewis/x3dom documentation built on May 13, 2019, 9:08 a.m.