Description Usage Details Value Examples
View source: R/sims-teaching.R
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
).
1 | corrSim()
|
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.
None, but a a dynamic graphic with sliders is produced.
1 2 3 4 | ## Not run:
corrSim()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.