generate.descriptive.plots: Use histograms and boxplots to get an general idea of what...

Description Usage Arguments Value See Also Examples

View source: R/preprocessing.R

Description

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

Usage

1
2
3
4
5
6
7
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

Other Preprocessing functions: AddColBinnedToBinary(), AddColBinnedToQuartiles(), AddPCsToEnd(), ConvertDataToPercentiles(), CorAssoTestMultipleWithErrorHandling(), DownSampleDataframe(), GenerateElbowPlotPCA(), GeneratePC1andPC2PlotsWithAndWithoutOutliers(), Log2TargetDensityPlotComparison(), LookAtPCFeatureLoadings(), MultipleColumnsNormalCheckThenBoxCox(), NormalCheckThenBoxCoxTransform(), RanomlySelectOneRowForEach(), RecodeIdentifier(), RemoveColWithAllZeros(), RemoveRowsBasedOnCol(), RemoveSamplesWithInstability(), SplitIntoTrainTest(), StabilityTestingAcrossVisits(), SubsetDataByContinuousCol(), TwoSampleTTest(), ZScoreChallengeOutliers(), captureSessionInfo(), correlation.association.test(), describeNumericalColumnsWithLevels(), describeNumericalColumns(), generate.descriptive.plots.save.pdf()

Examples

1
2
3
4
5
6
7
8
9
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")

yhhc2/machinelearnr documentation built on Dec. 23, 2021, 7:19 p.m.