dfPlot: Plot All Variables of a Data Frame

View source: R/dfPlot.R

dfPlotR Documentation

Plot All Variables of a Data Frame

Description

Plot all the variables of a data frame.

Usage

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

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)


krphillips/EchoNet2Fish documentation built on March 19, 2022, 11:59 p.m.