Learn R Programming

ACSWR (version 1.0)

somesamples: Scatter Plots for Understanding Correlations

Description

A cooked data tailor made for the use of scatter plots towards understanding correlations.

Usage

data(somesamples)

Arguments

Format

A data frame with 200 observations on the following 12 variables.
x1
x of Sample 1
y1
y of Sample 1
x2
x of Sample 2
y2
y of Sample 2
x3
x of Sample 3
y3
y of Sample 3
x4
x of Sample 4
y4
y of Sample 4
x5
x of Sample 5
y5
y of Sample 5
x6
x of Sample 6
y6
y of Sample 6

Examples

Run this code
data(somesamples)
attach(somesamples)
par(mfrow=c(2,3))
plot(x1,y1,main="Sample I",xlim=c(-4,4),ylim=c(-4,4))
plot(x2,y2,main="Sample II",xlim=c(-4,4),ylim=c(-4,4))
plot(x3,y3,main="Sample III",xlim=c(-4,4),ylim=c(-4,4))
plot(x4,y4,main="Sample IV",xlim=c(-4,4),ylim=c(-4,4))
plot(x5,y5,main="Sample V",xlim=c(-4,4),ylim=c(-4,4))
plot(x6,y6,main="Sample VI",xlim=c(-4,4),ylim=c(-4,4))

Run the code above in your browser using DataLab