Learn R Programming

depth.plot (version 0.1)

dd.plot: Depth-Depth Plots

Description

dd.plot is a multivariate genralization of a normal QQ-plot. It produces a DD-plot of two datasets.

Usage

dd.plot(data1, data2 = rmvnorm(nrow(data1), array(0, ncol(data1)), diag(1, ncol(data1), ncol(data1))), main = "Normal DD-plot", xlab = "Sample Depths", ylab = "Normal Depths", col = "black", pch = 20)

Arguments

data1
A matrix or a data.frame with each row as a p-variate observation.
data2
A matrix or a data.frame (defaults to a standard independent p-variate normal).
main
Plot labels. The title of the plot.
xlab
Plot labels. The x-axis label of the plot.
ylab
Plot labels. The y-axis label of the plot.
col
The color of the points
pch
character string or vector of 1-characters or integers for plotting characters.

Value

A DD-plot of the input data

See Also

spatial.depth

Examples

Run this code
u<-matrix(rnorm(300,1,4),ncol=3)
dd.plot(u)

Run the code above in your browser using DataLab