Depth Graph
Builds the data depth graphs for 2-dimensional data. The graph is built using persp
.
depth.graph(data, depth_f = c("halfspace", "Mahalanobis", "projection", "simplicial", "simplicialVolume", "spatial", "zonoid", "none"), apoint = NULL, main = depth_f, xlim = c(min(data[, 1]), max(data[, 1])), ylim = c(min(data[, 2]), max(data[, 2])), zlim = c(0, max(z)), xnum = 250, ynum = 250, theta=15, phi=60, bold = F, ...)
data |
2-dimensional numeric data frame or matrix |
depth_f |
the name of the depth function. The list of the supported depths and described in the topic |
apoint |
a 2-dimensional point which is shown in black color. |
main |
an overall title for the plot: see |
xlim, ylim, zlim |
numeric vectors of length 2, giving the x, y and z coordinates ranges: see |
xnum, ynum |
number of points on each direction, x and y. Impacts the smoothness of the surface. |
theta, phi |
rotation angles |
bold |
draws bold points |
... |
additional parameters passed to |
## Not run: par(mfrow = c(2,3), mar = c(0,0,0,0), mai = c(0,0,0.2,0)) data(hemophilia) depth.graph(hemophilia, "none", xnum = 100, ynum = 100) depth.graph(hemophilia, "Mahalanobis", xnum = 100, ynum = 100) depth.graph(hemophilia, "halfspace", xnum = 100, ynum = 100) depth.graph(hemophilia, "projection", xnum = 100, ynum = 100) depth.graph(hemophilia, "zonoid", xnum = 100, ynum = 100) depth.graph(hemophilia, "spatial", xnum = 100, ynum = 100) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.