Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

R. H. Baayen

See Also

mvrnorm (MASS package)

Examples

## Not run: 
	mvrnormplot.fnc(r=0.9, n=100)

## End(Not run)

languageR

Analyzing Linguistic Data: A Practical Introduction to Statistics

v1.5.0
GPL (>= 2)
Authors
R. H. Baayen <harald.baayen@uni-tuebingen.de>, Elnaz Shafaei-Bajestan <elnaz.shafaei-bajestan@uni-tuebingen.de>
Initial release
2019-01-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.