PCMBase (version 1.2.14)

PCMPlotGaussianDensityGrid2D: A 2D Gaussian distribution density grid in the form of a ggplot object

Description

A 2D Gaussian distribution density grid in the form of a ggplot object

Usage

PCMPlotGaussianDensityGrid2D(
  mu,
  Sigma,
  xlim,
  ylim,
  xNumPoints = 100,
  yNumPoints = 100,
  ...
)

Value

a ggplot object

Arguments

mu

numerical mean vector of length 2

Sigma

numerical 2 x 2 covariance matrix

xlim, ylim

numerical vectors of length 2

xNumPoints, yNumPoints

integers denoting how many points should the grid contain for each axis.

...

additional arguments passed to ggplot