dfPlot: Plot All Variables of a Data Frame

Description Usage Arguments Details Examples

View source: R/dfPlot.R

Description

Plot all the variables of a data frame.

Usage

1
dfPlot(df, mcex = 1.2, cex = 0.8, ...)

Arguments

df

A data frame to be plotted

mcex

A numeric scalar giving the amount by which plot titles will be magnified, default 1.2.

cex

A numeric scalar giving the amount by which plotting text and symbols will be magnified, default 0.8.

...

Additional arguments to the par function.

Details

An individual graph is generated for each variable. Bar plots are drawn for factors, characters with up to 50 unique values, and numerics with up to 10 unique values. Otherwise finite values are plotted versus row number in df. An empty plot is drawn for numerics with fewer than 2 finite values and characters with more than 50 unique values.

Examples

1
2
3
4
5
mydat <- data.frame(a=c(1:5, 10:15, 6:9),
 b=as.factor(rep(c("cat", "dog", "frog", "cat", "dog"), 3)),
 c=rep(c("a", "b", "a", "a", "b"), 3),
 stringsAsFactors=FALSE)
dfPlot(mydat)

dmwarn/EchoNet2FishTO documentation built on March 6, 2021, 12:25 a.m.