Contour plot of the bivariate Cauchy distribution {mvcauchy}R Documentation

Contour plot of the bivariate Cauchy distribution

Description

Contour plot of the bivariate Cauchy distribution.

Usage

bivcauchy.contour(x, m = NULL, s = NULL, cont.lines = TRUE, add.points = TRUE)

Arguments

x

A matrix with two columns containing the data.

m

If you know the location vector place it here. In this case the function still needs the argument with the data.

s

If you know the scatter matrix place it here. In this case the function still needs the argument with the data.

cont.lines

Do you want the contour lines to appear?

add.points

Do you want the data points to appear?

Details

The function plots the contours of the bivariate Cauchy distribution whose parameters are either estimated from some data or they are given as inputs. If you want the contour plot of the bivariate Cauchy distribution with some pre-specified location and scatter matrix, then provide some cleverly specified data "x" so that you receive what you want. See the examples.

Value

The contour plot.

Author(s)

Michail Tsagris and Christos Adam.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Christos Adam pada4m4@gmail.com.

See Also

dmvcauchy

Examples

## not specified location and scatter
x <- as.matrix(iris[, 1:2])
bivcauchy.contour(x)

## with specified location and scatter
m <- colMeans(x)
s <- cov(x)
## in this case you may need to adjust the data points youself
## "play"" with minimum and maximum values of the two axes
y <- rbind( apply(x, 2, min) - 1, apply(x, 2, max) + 2 )
bivcauchy.contour(y, m = m, s = s, add.points = FALSE)

[Package mvcauchy version 1.0 Index]