visual.test: Visual test of association

Description Usage Arguments Examples

Description

Builds a matrix of 4 scatterplots

Usage

1

Arguments

x
y

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, y) 
{
    oldpar <- par(no.readonly = TRUE)
    par(mar = c(0, 0, 0, 0))
    m <- matrix(sample(1:4), 2, 2)
    layout(m, 1, 1)
    plot(x, y, pch = 20)
    abline(0, 0, col = "red", lwd = 1)
    for (i in 1:3) {
        plot(x, sample(y), pch = 20)
        abline(0, 0, col = "red", lwd = 1)
    }
    par(oldpar)
  }

andrewheiss/byumpa documentation built on May 10, 2019, 10:31 a.m.