Learn R Programming

Laurae (version 0.0.0.9001)

tableplot_jpg: Batch tableplot generator to JPEG

Description

This functions allows you to create JPEGs of tableplots aganist a dataset and a specific label (which must be a factor or a numeric) A numeric target allows to provide an overview of each variable against the ordering of the label A factor target allows to provide an overview of each variable against each factor of the label

Usage

tableplot_jpg(data, target, nBins = 100, folder = "./autoplots/plot_",
  ID = FALSE, width = 960, height = 960, pointsize = 12)

Arguments

data
The data to load.
target
The target label. Either factor or numeric.
nBins
The amount of bins per histogram. Should be between 50 and 500 if possible (higher may overfit, lower may underfit). Defaults to 100.
folder
The output folder where tableplots will be stored. Defaults to "./autoplots/plot_".
ID
Should the filename use the ID of the feature (starts at 1) or the name of the feature? Defaults to FALSE.
width
The width output of each tableplot, in pixels. Defaults to 960.
height
The height output of each tableplot, in pixels. Defaults to 960.
pointsize
The pointsize output of each tableplot, in pixels. Defaults to 12.

Value

Nothing

Examples

Run this code
## Not run: ------------------------------------
# tableplot_jpg(train[, !(colnames(train) %in% "target")], train$target,
# folder = "./plots/my_plot_", ID = FALSE, width = 960, height = 960, pointsize = 12)
## ---------------------------------------------

Run the code above in your browser using DataLab