plotFeatDistr: Plots univariate distribution of a feature.

Description Usage Arguments Value Examples

Description

Plots univariate distribution of a feature.

Usage

1
2
plotFeatDistr(data, target, col, geom.hist.args = list(bins = 30, alpha = 0.4,
  colour = "black"), geom.dens.args = list(size = 2, alpha = 0.4))

Arguments

data

[data.frame]
Data.

target

[character(1)]
Target column. If no target is available in the dataset please insert NULL

col

[character(1) | integer(1)]
Selected feature from data.

geom.hist.args

[list()]
Other arguments to be passed to geom_histogram.

geom.dens.args

[list()]
Other arguments to be passed to geom_density.

Value

A ggplot2 object. Print it to plot it.

Examples

1
2
 data("diamonds", package = "ggplot2")
 plotFeatDistr(diamonds, target = "cut", col = "carat")

ptl93/AEDA documentation built on May 7, 2019, 3:20 p.m.