panel.cor: plot correlation

View source: R/panel_cor.R

panel.corR Documentation

plot correlation

Description

panel function to plot correlation in pair plot

Usage

panel.cor(x, y, digits = 2, prefix = "", cex.cor, text_pos = c(0.5, 0.5), ...)

Arguments

x, y

Variables to calculate correlation

digits

integer indicating the number of decimal places to be used

prefix

character what should be put before number

cex.cor

character expansion of the plotted correlation

tex_pos

vector in the form c(x,y), defines the position of the correlation. The coordinates are given as normalized device coordinates.

Value

plot correlation

Examples

pairs(iris, lower.panel = panel.smooth, diag.panel = panel.hist,
      upper.panel = panel.cor)

retodomax/FunRZ documentation built on Sept. 4, 2024, 9:56 a.m.