PCMPlotGaussianSample2D | R Documentation |
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. |
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.
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.