dfPlot: Plot All Variables of a Data Frame

Description Usage Arguments Details References 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

In this package, this function is not necessarily intended to be called by the user. If it is, 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.

References

Jean V. Adams (2019). EchoNet2Fish: Estimate Fish Abundance from Acoustic Echoes and Net Catch. R package version 0.3.3.9000. https://github.com/dmwarn/EchoNet2Fish

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/CruiseCheckeR documentation built on Oct. 11, 2020, 9:56 p.m.