corr_plot: Correlation Plot

Description Usage Arguments Value Examples

View source: R/test-corr_plot.R

Description

Function for making a correlation plot starting from a formula and a data.frame

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
corr_plot(x, ...)

## S3 method for class 'formula'
corr_plot(x, data, ...)

## S3 method for class 'lm'
corr_plot(x, data = x$model, type = c("p", "r"),
  scales = list(x = list(relation = "free")), ylab = names(data)[1],
  xlab = "", layout = c(ncol(data) - 1, 1), ...)

## S3 method for class 'data.frame'
corr_plot(data, jitter = FALSE, smooth = TRUE,
  lines = TRUE, pch = 20, digits = 2, cex.cor = NULL,
  method = "pearson", stars = FALSE, resize = FALSE, hist = TRUE,
  ...)

Arguments

x

formula

...

weitere Param an Lattice oder pairs

data

a data matrix

type

an xyplot c("p", "r")

scales

an xyplot

ylab, xlab

an xyplot

layout

an xyplot

jitter

Rauschen

smooth

Gezeichnete Lineie

lines

Regressinsgerade

pch

Symbole pch=20

digits

Nachkommastellen in plot

cex.cor, resize

Fixe groese mit cex.cor, resize abhaengig von r-Wert

method

c("pearson", "kendall", "spearman")

stars

Sternchen

hist

Histogram TRUE/FLASE

data

aus x$model

Value

nix

Examples

1
2
3
4
5
6
7
# graphics.off()
# library(stpvers)

#windows(8,8)
corr_plot(~ m1 + m2 + m3 + m4, varana)
#windows(8,8)
corr_plot( m1~  m2 + m3 + m4, varana)

stp4/stp25APA2 documentation built on May 24, 2019, 9:59 p.m.