Learn R Programming

miscor (version 0.1-0)

scatterplot: Scatterplot Matrices

Description

This function produces a scatterplot matrix for integer data

Usage

scatterplot(dat, type = c("jitter", "size", "count", "sun", "identity"), barplot = TRUE, curves = TRUE)

Arguments

dat
a dat frame
type
type of plot, i.e., 'jitter', 'size', 'count', 'sun', and 'identity'
barplot
logical: if TRUE barplots are shown in the diagonals.
curves
logical: if TRUE lowess smoothing curves are added in the upper diagonal.

References

Rasch, D., Kubinger, K. D., & Yanagida, T. (2011). Statistics in psychology - Using R and SPSS. New York: John Wiley & Sons.

See Also

test.cor, seqtest.cor

Examples

Run this code
dat <- round(sim.cor(200, rho = 0.7))

# Scatterplot matrix: jitter
scatterplot(dat)

# Scatterplot matrix: size
scatterplot(dat, type = "size")

# Scatterplot matrix: count
scatterplot(dat, type = "count")

# Scatterplot matrix: sun
scatterplot(dat, type = "sun")

Run the code above in your browser using DataLab