Learn R Programming

languageR (version 1.0)

mvrnormplot.fnc: Scatterplot of bivariate standard normal distribution

Description

This function produces a scatterplot for a bivariate standard normal distribution with least squares regression line.

Usage

mvrnormplot.fnc(r, n, limits)

Arguments

r
The correlation, defaults to 0.9.
n
Number of simulated data points, defaults to 100.
limits
Optional range for the axes

Value

  • A scatterplot with ordinary least squares regression line is shown on the graphics device, with sample estimate of r added at the top of the plot.

See Also

mvrnorm (MASS package)

Examples

Run this code
mvrnormplot.fnc(r=0.9, n=100)

Run the code above in your browser using DataLab