corDemo | R Documentation |
For a given r
, create a scatterplot of two variables with that
correlation.
corDemo(r = 0)
r |
a number between -1 and 1. Enter any number r, |
Demonstrate the concept of correlation by inputting a number between -1 and
1 and seeing a scatter plot of two variables with that correlation. Once you
invoke this command, you can continue to enter values for r. Type any number
latex
) to exit.
Laura Chihara
## Not run:
corDemo()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.