corrSim: Dynamic simulations to demonstrate how the correlation is...

Description Usage Details Value Examples

View source: R/sims-teaching.R

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

1

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

1
2
3
4
## Not run: 
corrSim()

## End(Not run)

droglenc/NCStats documentation built on June 5, 2021, 2:06 p.m.