corDemo {CarletonStats}R Documentation

Correlation demonstration

Description

For a given r, create a scatterplot of two variables with that correlation.

Usage

corDemo(r = 0)

Arguments

r

a number between -1 and 1. Enter any number r, abs(r)> 1 , to exit the interactive session[

Details

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 abs(r)> 1 ) to exit.

Author(s)

Laura Chihara

Examples


## Not run: 
corDemo()

## End(Not run)


[Package CarletonStats version 2.0 Index]