pairsdf: Pairs plot for mixed data sets

Description Usage Arguments Author(s) Examples

View source: R/pairsdf.R

Description

A variant of the pairs plot to create a scatterplot matrix, allowing for categorical variables.

Usage

1
pairsdf(df, abbr = TRUE, abbr.len = 4)

Arguments

df

dataframe with numericals and factor data

abbr

allow abbreviated labels

abbr.len

lenght of abbreviated labels

Author(s)

Biostatmat, http://biostatmatt.com/archives/2398

Examples

1
2
3
4
5
6
7
require(MASS)
par(mar=c(0,0,0,0)) # Much less whitespace
par(mar=c(1,1,1,1)) # Much less whitespace
pairsdf(coop[,1:3])
pairsdf(farms[,1:3])
par(mar=c(1,1,1,1))
pairsdf(coop[,2:4])

dmenne/dmisc2 documentation built on Sept. 30, 2019, 9:41 a.m.