sample.plotluck: Run 'plotluck' for a randomly generated formula.

View source: R/plotluck.R

sample.plotluckR Documentation

Run plotluck for a randomly generated formula.

Description

sample.plotluck samples a formula as follows:

  • Uniformly draw the number of variables (1-3).

  • For each variable, uniformly choose one of the existing variable types from the data set (numeric, ordered or unordered factor).

  • Uniformly select one of the data frame columns of that type.

Usage

sample.plotluck(data, ...)

Arguments

data

a data frame

...

additional parameters to be passed to plotluck, such as weights and opts.

Value

a ggplot2 object.

See Also

plotluck

Examples

set.seed(42)
data(iris)
sample.plotluck(iris)

stefan-schroedl/plotluck documentation built on Jan. 27, 2023, 3:40 a.m.