contour_model {BAMBI} | R Documentation |
Contourplot for bivariate angular mixture model densities
Description
Contourplot for bivariate angular mixture model densities
Usage
contour_model(
model = "vmsin",
kappa1,
kappa2,
kappa3,
mu1,
mu2,
pmix = rep(1/length(kappa1), length(kappa1)),
xpoints = seq(0, 2 * pi, length.out = 100),
ypoints = seq(0, 2 * pi, length.out = 100),
levels,
nlevels = 20,
xlab = "x",
ylab = "y",
col = "black",
lty = 1,
main,
...
)
Arguments
model |
bivariate angular model whose mixture is of interest. Must be one of "vmsin", "vmcos" and "wnorm2". |
kappa1 , kappa2 , kappa3 , mu1 , mu2 , pmix |
model parameters and mixing proportions. See the respective mixture model densities (dvmsinmix, dvmcosmix, dwnorm2mix) for more details. |
xpoints |
Points on the first (x-) coordinate where the density is to be evaluated. Default to seq(0, 2*pi, length.out=100). |
ypoints |
Points on the first (x-) coordinate where the density is to be evaluated. Default to seq(0, 2*pi, length.out=100). |
levels |
numeric vector of levels at which to draw contour lines; passed to the contour function in graphics. |
nlevels |
number of contour levels desired if levels is not supplied; passed to the contour function in graphics. |
xlab , ylab , col , lty , main |
graphical parameters passed to contour. |
... |
additional model specific argment |
Examples
contour_model('vmsin', 1, 1, 1.5, pi, pi)
contour_model('vmcos', 1, 1, 1.5, pi, pi)