PCMPlotGaussianSample2D.Rd
A 2D sample from Gaussian distribution
PCMPlotGaussianSample2D(mu, Sigma, numPoints = 1000, ...)
mu | numerical mean vector of length 2 |
---|---|
Sigma | numerical 2 x 2 covariance matrix |
numPoints | 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.