A 2D sample from Gaussian distribution
PCMPlotGaussianSample2D(mu, Sigma, numPoints = 1000, ...)
numerical mean vector of length 2
numerical 2 x 2 covariance matrix
an integer denoting how many points should be randomly sampled (see details).
additional arguments passed to ggplot.
a ggplot object
This function generates a random sample of numPoints 2d points using the function rmvnorm from the mvtnorm R-package. Then it produces a ggplot on the generated points.