dist3d: 3D histogram distribution of two variables

Description Usage Arguments See Also Examples

View source: R/dist3d.R

Description

Draw a 3D histogram distribution of points.

Usage

1
2
3
dist3d(x, y, break.func = c("Sturges", "scott", "FD"), breaks = NULL,
  col.bar = "white", colvar = NULL, col.point = plot3D::gg.col(100),
  clab = NULL, phi = 5, theta = 25, ...)

Arguments

x,y

vectors with x and y values.

break.func

a function to compute the vector of breakpoints (see ?hist).

breaks

an integer specifying the number of breaks.

col.bar

color for bars.

colvar

the variable used for coloring points

col.point

Color palette to be used for the colvar variable. If col is NULL and colvar is specified, then a red-yellow-blue colorscheme (jet.col) will be used. If col is NULL and colvar is not specified, then col will be grey.

clab

Only if colkey = TRUE, the label to be written on top of the color key.

theta,phi

The angles defining the viewing direction

...

other arguments to be passed to plot3D::hist3D()

See Also

hist3D, hist

Examples

1
2
3
data(quakes)
dist3d(quakes$long, quakes$lat, colvar=quakes$depth,
   breaks =30)

kassambara/graph3d documentation built on May 20, 2019, 7:40 a.m.