surface_model {BAMBI}R Documentation

Surface for bivariate angular mixture model densities

Description

Surface for bivariate angular mixture model densities

Usage

surface_model(
  model = "vmsin",
  kappa1,
  kappa2,
  kappa3,
  mu1,
  mu2,
  pmix = rep(1/length(kappa1), length(kappa1)),
  xpoints = seq(0, 2 * pi, length.out = 30),
  ypoints = seq(0, 2 * pi, length.out = 30),
  log.density = FALSE,
  xlab = "x",
  ylab = "y",
  zlab = ifelse(log.density, "Log Density", "Density"),
  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).

log.density

logical. Should log density be used for the plot?

xlab, ylab, zlab, main

graphical parameters passed to lattice::wireframe

...

additional arguments passed to lattice::wireframe

Examples

surface_model('vmsin', 1, 1, 1.5, pi, pi)
surface_model('vmcos', 1, 1, 1.5, pi, pi)


[Package BAMBI version 2.3.5 Index]