Learn R Programming

languageR (version 1.5.0)

pairscor.fnc: Scatterplot matrix with correlations

Description

A matrix of scatterplots is produced with Pearson and Spearman correlations in the lower triangle. By default, smoothers are added to panels in the upper triangle, and histograms are added to the panels on the diagonal.

Usage

pairscor.fnc(data, hist = TRUE, smooth = TRUE,
  cex.points = 1,  col.points = "darkgrey")

Arguments

data

a data frame or matrix with numeric vectors.

hist

a logical indicating whether panels on the diagonal should contain a histogram.

smooth

a logical indicating whether panels in the upper triangle should have a smoother added.

cex.points

a number indicating the size of the points in the panels in the upper triangle, available only when smoothers are added.

col.points

a number or string indicating the color of the points in the panels in the upper triangle, available only when smoothers are added.

See Also

See Also pairs and panel.smooth.

Examples

Run this code
# NOT RUN {
  data(lexicalMeasures)
  pairscor.fnc(lexicalMeasures[,c("CelS", "Vf", "Ient", "NsyS", "Ncou")])
# }

Run the code above in your browser using DataLab