Creates a subplot for each specified feature. Each subplot can be histogram or a boxplot.

generate.descriptive.plots(
  inputted.data,
  overall.plot.layout,
  plot.type,
  plot.features,
  plot.name
)

Arguments

inputted.data

A dataframe.

overall.plot.layout

A vector with two elements to specify how many rows and columns to include in the par plot. c(rows, cols)

plot.type

A vector that specifies, for each subplot, should features be displayed in histogram or boxplot form. Elements can be "histogram" or "boxplot".

plot.features

A vector that specifies, for each subplot, what features should be analyzed. The elements should be names of columns that contain continous numerical data.

plot.name

A string for the name of the plot.

Value

No object is outputted, but a plot is displayed.

See also

Examples

first.col <- c(10, 10, 30, 50, 20 , 10, 30) second.col <- c(1, 2, 3, 1, 1, 1, 1) input.data.frame <- as.data.frame(cbind(first.col, second.col)) generate.descriptive.plots(input.data.frame, c(1, 2), c("boxplot", "histogram"), c("first.col", "second.col"), "Example")