corrSim {NCStats} | R Documentation |

## Dynamic simulations to demonstrate how the correlation is computed.

### Description

This function simulates bivariate data with a known correlation coefficient. A crosshairs at the bivariate means and color coding of the product of standardized values helps illustrate how the concept of the correlation. Optionally, rectangles from each point to the bivariate mean can be include to demonstrate how the correlation sums these areas (concept from `cor.rect.plot`

).

### Usage

corrSim()

### Details

Requires RStudio and the manipulate package to be installed. The dynamic graph is produced in the “Plots” pane of RStudio. The plot controls may be accessed through the “gear” that is in the upper-left corner of the plot.

### Value

None, but a a dynamic graphic with sliders is produced.

### Examples

## Not run:
corrSim()
## End(Not run)

[Package

*NCStats* version 0.4.7

Index]